@danielmkovalik · Post #2784 · 10.09.2025 г., 12:15
Israel bombs #Qatar with the blessing of the U.S., further eroding the rule of law in the world and destroying any credibility they have left.
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
Пребарај: #qatar
@danielmkovalik · Post #2784 · 10.09.2025 г., 12:15
Israel bombs #Qatar with the blessing of the U.S., further eroding the rule of law in the world and destroying any credibility they have left.
Hashtags
@VOYAGE · Post #1704 · 30.03.2026 г., 12:14
🪩 A breathtaking night party on the rooftop of the 36th floor at Raffles Doha, offering stunning views of Lusail city. #Qatar | @voyage
Hashtags
@VOYAGE · Post #1383 · 08.04.2025 г., 12:14
🪩 A breathtaking night party on the rooftop of the 36th floor at Raffles Doha, offering stunning views of Lusail city. #Qatar | @voyage
Hashtags
@IHMA_matbuotkotibi · Post #674 · 08.11.2025 г., 05:35
09:00 08.11.2025 Dohada “O‘zbekiston. Ochiq eshiklar mamlakati” Ko‘rgazmasi #Qatar muxbir: Murodjon Axatov https://t.me/zamon_lavhalar
Hashtags
@IHMA_matbuotkotibi · Post #671 · 07.11.2025 г., 09:38
Dohada O'zbekiston pavilyoni⚡️ “O’zbekiston” telekanali “Jarayon” 18:00 06.11.2025 #QATAR Rasmiy sahifalarimiz🌐 Telegram | Instagram | O'zTV1 Insta |O'zTV1 TG | UTube | O'zTV1FB | UzRadio103.1
Hashtags
@Whitehousewatch · Post #17042 · 14.01.2026 г., 15:30
#Qatar, #Iran: Il Dipartimento della Guerra ha cominciato a ritirare alcune truppe e alcuni asset dalla base al-Udeid in Qatar come precauzione in vista di una decisione di Donald Trump di colpire o meno l'Iran. La base in questione viene utilizzata per ospitare bombardieri, aerei di rifornimento, jet da combattimento, aerei per la sorveglianza e droni. Lo stesso era stato fatto a giugno pirma che gli Stati Uniti colpissero l'Iran.
@iswnews_en · Post #18548 · 11.04.2026 г., 12:02
🇮🇷/🇺🇸Based on unofficial news from Islamabad, Iran's red lines in negotiations with the US include the following: 1- The Strait of Hormuz must be under Iran's control. 2- Payment of compensation for war damages. 3- Release of Iran's frozen assets. 4- Any ceasefire must be implemented sustainably and genuinely on all relevant fronts. ‼️ Additionally, negotiations will begin after Iranian officials meet with Pakistani Prime Minister Shehbaz Sharif to discuss US violations of the ceasefire terms, at the forefront of which are the release of Iran's frozen funds in Qatar and a ceasefire in Lebanon. These two issues have been set as preconditions for the start of the talks. #Iran#Qatar
@iswnews_en · Post #16951 · 05.03.2026 г., 00:24
🇮🇷/🇺🇸🇶🇦💥💥 Explosions at US bases in Doha. #Iran#USA#Qatar
@Marwa_OsmanLB · Post #3057 · 16.08.2024 г., 14:40
Do not believe a single word that comes out of the meeting of the genocide enablers in #Qatar Only believe what comes out of the mouth of the resistance in #Gaza That is the only side I trust...and that side is not even present in Qatar.
@iswnews_en · Post #18016 · 01.04.2026 г., 01:19
🇮🇷/🇺🇸🇶🇦🚢💥The United Kingdom Maritime Trade Operations (UKMTO) has reported an incident 17 nautical miles north of Doha. The security officer reported that a tanker was struck by an unknown projectile, causing damage to the hull above the waterline. The crew is reported safe. 📊 Since the start of the war, Iranian armed forces have struck at least 24 violating vessels in the waters of the Persian Gulf, the Strait of Hormuz, and the Gulf of Oman. These attacks have been carried out using suicide naval drones, suicide drones, cruise missiles, anti‑ship ballistic missiles, armed speedboat assaults, and other means. #Iran#US#Qatar
@iswnews_en · Post #17450 · 20.03.2026 г., 00:58
🇮🇷/🇺🇸🇶🇦‼️Repairing the damage to the Ras Laffan gas complex will take 5 years! 🔹State-owned QatarEnergy, which operates the Ras Laffan gas complex, told Reuters that the damage inflicted on "two units" of the LNG facility, developed through a joint investment with the American company ExxonMobil, will require three to five years to repair. ➡️ The company added that this incident will reduce its annual revenue by $20 billion and force it to cancel long-term contracts with Italy, Belgium, Korea, and China. ✍️ As the Qataris themselves have acknowledged, Iran's "limited strike" on a "small section" of the Ras Laffan facilities has been this damaging. This reality once again emphasizes that any extensive Iranian attack on these facilities and other similar oil and gas installations in the region could lead to a huge and irreparable catastrophe in the history of human energy! Therefore, the U.S., Europe, and the Persian Gulf states have clearly received Iran's powerful and unequivocal message, and it is unlikely they will make any further mistakes from now on. Of course, the malice of the Zionist regime remains ever-present, but if this mistake is repeated, there will be no way back left for anyone! #Iran#US#Qatar
@iswnews_en · Post #17205 · 09.03.2026 г., 00:41
🇮🇷/🇺🇸🚨 Missile attack on Al Udeid base in Qatar. #Iran#US#Qatar