@palestineresist · Post #93240 · 05.04.2026 г., 19:09
IOF soldiers were documented brutally assaulting a young man near Qalandia camp, north of #AlQuds. Zionist soldiers took turns severely beating the individual during the attack.
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
Пребарај: #alquds
@palestineresist · Post #93240 · 05.04.2026 г., 19:09
IOF soldiers were documented brutally assaulting a young man near Qalandia camp, north of #AlQuds. Zionist soldiers took turns severely beating the individual during the attack.
Hashtags
@rnn_archive · Post #446 · 02.07.2023 г., 17:30
Today marks the somber ninth anniversary of the martyrdom of Mohammed Abu Khdeir at the hands of zionist settlers. 16-year-old Mohammed was kidnapped by a horde of settlers in #AlQuds on July 2nd, 2014, one of the early days of Ramadan. As he was preparing his pre-fast meal before the break of dawn, a group of settlers grabbed him and drove away. Mohammed was subsequently tortured, beaten with tools and forced to drink gasoline. The final act of violence perpetrated against him is as sickening as it is infuriating: doused with gasoline, Mohammed was set on fire. The depravity of zionism knows no bounds. Mohammed's case is one of countless crimes perpetrated against our people from the moment that the first settler stepped onto our land. It is a crime emblematic of the essence of zionism itself, in its racism, sadism, and hatred. Glory to our martyrs, and may they all be avenged.
Hashtags
@RNN_Backup · Post #64431 · 25.10.2024 г., 09:44
🚨 Footage documents zionist soldiers targeting and shooting children yesterday in the town of Biddu, northwest of #AlQuds. Following the wounding of the child, the IOF abducted him. The barbaric crimes of the occupation carried out against children, women, men, and the elderly are escalating in the occupied West Bank and the #Gaza Strip, accompanied by a deafening silence from the international community and their refusal to hold the occupation accountable for their ongoing crimes.
@RNN_Backup · Post #64453 · 25.10.2024 г., 10:01
🚨 13-year-old Iyad Ashraf Da'is from #AlQuds was released today from occupation prisons after 7 month of detention with the marks of zionist torture and medical negligence against the prisoners clear on his body. Iyad suffers from severe scabies due to the deliberate inhumane measures taken by the occupation administration against the prisoners as part of collective revenge against them. He was also sentenced to house arrest and his ankle was fitted with an electronic bracelet and was banned from Al-Quds to Taybeh. Iyad was arrested on March 27 from his home in Shu'fat, occupied #AlQuds. #FreeThemAll
Hashtags
@RNN_Backup · Post #62684 · 12.10.2024 г., 21:24
🚨 The IOF and armed settlers conducted a series of aggressions across the West Bank today: Armed settlers attacked farmers in the village of Al-Mughayyir in #Ramallah and prevented them from harvesting olives. (media 1,2) Settlers also cut down olive trees in the village of Yasuf, east of #Salfit (media 3,4). The IOF invaded the town of Beita, south of #Nablus, where confrontations erupted between resistance youth and the zionist forces. (media 5,6,7). The IOF fired live bullets heavily at Palestinian homes at the entrance of Al-Arroub refugee camp, north of #AlKhalil. (media 8,9) The IOF invaded Shufat refugee camp in #AlQuds. (media 10)