@mib_messageinabottle · Post #6884 · 22.05.2024 г., 22:11
🇺🇳🇵🇸🇮🇱The amount of gaslighting and lies is pretty insane by the #Israeli supporter here. What happened to the aid workers indeed? @MyLordBebo | Boost us! | X
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #210 · 3 фев.
Что делать если нужно поставить какую-то Python-библиотеку а root-прав нет? То есть в систему библиотеку никак и ничего не поставить. Есть как минимум два способа это решить правильно! 🔸 Сделать виртуальное окружение и ставить там что угодно. Это позволит создать полностью независимое исполняемое окружение для ваших приложений. Все библиотеки будут храниться в домашней директории юзера а значит доступ на запись имеется. Создать очень просто: python3 -m venv ~/venvs/myenvname Теперь активируем окружение # Linux source ~/venvs/myenvname/bin/activate # Windows %userprofile%\venvs\myenvname\Scripts\activate.bat Можно ставить любые библиотеки и запускать приложение. Это стандартный метод работы с любым проектом. Если еще не используете его, то пора начинать. Даже при наличии root доступа! 🔸 Бывает, что нет возможности запустить приложение из своего виртуального окружения. Например, его запускает какой-то сервис от вашего юзера и вставить активацию окружения вы не можете. В этом случае можно установить библиотеки для Python не глобально в систему, а только для юзера. Выполните этот код в консоли: python3 -m site Вы получите что-то такое: sys.path = [ '/home/user', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/user/.local/lib/python3.7/site-packages', ... ] USER_BASE: '/home/user/.local' USER_SITE: '/home/user/.local/lib/python3.7/site-packages' ENABLE_USER_SITE: True Нас интересует параметр USER_SITE. Это путь к пользовательским библиотекам, которые доступны по умолчанию, если они есть. Именно сюда будут устанавливаться модули если добавить флаг --user при установке чего-либо через pip pip install --user requests Для этой команды не нужны root-права. После неё можно запускать системный интерпретатор без виртуальных окружений и установленная библиотека будет доступна для текущего юзера. Параметр USER_BASE показывает корневую директорию для хранения user-библиотек. Её можно изменить с помощью переменной окружения PYTHONUSERBASE export PYTHONUSERBASE=~/pylibs python3 -m site ... USER_BASE: '/home/user/pylibs' USER_SITE: '/home/user/pylibs/lib/python3.7/site-packages' Получается некоторое подобие виртуального окружения для бедных 😁 которое можно менять через эту переменную (не делайте так!Лучше venv!) 🔸 Дописывание пути в PYTHONPATH Этот способ не входит в список "двух правильных", но тоже рабочий. Здесь придётся сделать всё несколько сложней. Сначала ставим библиотеку в любое место указывая путь установки pip3 install -t ~/mylibs modulename Библиотека установится без привязки к какому-либо интерпретатору. То есть по умолчанию не будет видна. Теперь в нужный момент добавляем этот путь в sys.path или в PYTHONPATH. Не буду советовать так делать. Единственный раз когда этот способ мне пригодился и решил поставленную задачу, это при создании общей библиотеки для кластера компьютеров. Модули лежат в сети и подгружаются для всех из одного и того же места. То есть обновлять файлы требуется только один раз а не на всех хосты отдельно. Минусы такого подхода: ▫️Нужно всем хостам пробить нужный путь в .bashrc или ещё куда-то чтобы он сетапился на старте. ▫️Чем больше хостов тем больше нагрузка на сеть. Иногда такой способ не подходит именно по этой причине. Тогда Ansible вам в помощь. ▫️Не очень подходит если хосты с разными операционками. Некоторые библиотеки различаются для Linux и Windows (там, где есть бинарники) и приходится мудрить более сложные схемы. #tricks#basic
Пребарај: #israeli
@mib_messageinabottle · Post #6884 · 22.05.2024 г., 22:11
🇺🇳🇵🇸🇮🇱The amount of gaslighting and lies is pretty insane by the #Israeli supporter here. What happened to the aid workers indeed? @MyLordBebo | Boost us! | X
Hashtags
@addisstandardeng · Post #21453 · 19.02.2026 г., 12:12
News: #Israeli President Herzog to visit #Ethiopia next week Isaac Herzog is expected to make a one-day official visit to Ethiopia next week, according to Israeli officials, in a move seen as part of expanding diplomatic engagement between the two countries. According to The Times of Israel, Herzog’s visit will include meetings with senior Ethiopian leaders aimed at strengthening political, economic, and cultural cooperation. The trip follows earlier high-level exchanges, including a 2018 visit by former Israeli President Reuven Rivlin, who held talks with Prime Minister Abiy Ahmed and other officials. More recently, Israeli Foreign Minister Gideon Sa’ar visited Addis Abeba in May 2025, meeting Ethiopian Foreign Minister Gedion Timothewos to discuss cooperation in political, economic, and technological sectors. https://www.facebook.com/share/1HGfFwBj8i/
@EPInforma · Post #35850 · 17.08.2025 г., 12:26
🇮🇱🇺🇸🇬🇧🇪🇺 IMPUNIDAD GARANTIZADA A ISRAEL POR EEUU, REINO UNIDO Y EUROPA El ejército israelí bombardeó a 3 civiles palestinos que estaban rescatando a otro civil herido en el barrio Al-Shujaiya, al este de Gaza. El régimen israelí ni siquiera esconde que extermina civiles desarmados a plena luz del día. #israel#israeli Vía 📱susanagiacaman Síguenos t.me/Epinforma🔁 comparte
@Marwa_OsmanLB · Post #3819 · 27.12.2024 г., 13:20
#Israeli forces entered Wadi al Hujayr, a valley in South #Lebanon, which they couldn’t reach during the war. Wadi Al Hujayr witnessed important battles in the #2006 war.
@HAMASW · Post #8497 · 18.04.2024 г., 16:10
⁉️‼️Israel continues to steal! The occupying #Israeli Defense Ministry announced that they transferred 29,000,000 shekels seized during operations in #Gaza to the Israeli Treasury.
@PeoplesPress · Post #2295 · 16.03.2024 г., 13:29
💔🇵🇸A little girl in the #Gaza Strip describing the #Israeli war and how it changed her life. "I was beautiful but the war made me ugly" @The Children of Gaza
@Marwa_OsmanLB · Post #3981 · 08.02.2025 г., 13:59
Despite a ceasefire being in place, #Israel didn’t hold back from air striking Lebanon under the guise of “self-defense” and “removing threats”, breaching the ceasefire and continuing its aggression on #Lebanon. Israel attacked Lebanon 855 times during the truce period, killing 43 civilians. Israel also launched 81 ground incursions, 25 artillery bombings, 38 shootings, 37 abductions, 14 raids on houses, and destroyed 3 vehicles. Israel took advantage of the withdrawal period to demolish Lebanese villages. The #Israeli Army performed 282 detonation and bulldozing operations in 38 different villages. Naqoura was 90% destroyed by the end of the withdrawal period.
@addisstandardeng · Post #22062 · 20.04.2026 г., 05:26
#IDF confirms authenticity of photo showing #Israeli soldier smashing Jesus statue with sledgehammer, pledges investigation after widespread outrage Addis Abeba- The Israeli military says it is investigating an incident involving one of its soldiers after a photo surfaced showing an Israeli soldier smashing a fallen statue of Jesus Christ in the head with a sledgehammer in southern Lebanon. The photo has triggered widespread outrage and condemnation among Christians around the world since it appeared on social media on Sunday 19 April 2026. According to The Times of Israel, the Israel Defense Forces (IDF) confirmed that the photograph depicts one of its soldiers using a sledgehammer to smash the statue while operating in southern Lebanon. Israel’s weeks long military attack in southern Lebanon has flattened entire areas, killing more than 2000 civilians and displacing hundreds of thousands. https://www.facebook.com/share/1AQbRbwxRM/?mibextid=wwXIfr
@Marwa_OsmanLB · Post #3898 · 21.01.2025 г., 12:59
As #Palestinian hostages and #Israeli captives go back to their homes, the difference in treatment and conditions becomes visible for the public eye.
Hashtags
@Marwa_OsmanLB · Post #3067 · 19.08.2024 г., 16:35
🇮🇱🇵🇸Horrific scenes emerging from Al-Shati refugee camp in northern #Gaza Strip shows the bodies of #Palestinian civilians slaughtered by an #Israeli occupation bombing. @MostMoralArmy
Hashtags
@Marwa_OsmanLB · Post #3478 · 17.10.2024 г., 09:28
A short SITREP shows the #Israeli infiltrations inside #Lebanon, all of which are facing heavy and successful #attacks.
@Marwa_OsmanLB · Post #3803 · 22.12.2024 г., 10:58
A group of #Israeli soldiers shot a young Syrian man dead, in a first-of-its-kind incident following Israel’s invasion of Southern #Syria. The incident took place in the #Syrian village of Ma’araya, located outside of the Israeli-Syrian buffer zone. The soldiers shot at the man during a protest against the #Israeli presence held by citizens of the village.