@rusembsg · Post #3571 · 10.10.2024 г., 02:42
🛬 Russia’s Foreign Minister Sergey Lavrov arrives in Vientiane (Laos) to take part in the 19th East Asia Summit 🌏#EAS
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
Пребарај: #eas
@rusembsg · Post #3571 · 10.10.2024 г., 02:42
🛬 Russia’s Foreign Minister Sergey Lavrov arrives in Vientiane (Laos) to take part in the 19th East Asia Summit 🌏#EAS
Hashtags
@aseanrussia · Post #1908 · 19.10.2025 г., 10:28
🗓 On October 17, the Russian delegation comprising representatives from the Ministry of Energy and the Ministry of Foreign Affairs 🇷🇺 — took part in the 19th East Asia Summit (#EAS) Energy Ministers’ Meeting held in Kuala Lumpur 🇲🇾. 🔹️The discussions focused on enhancing regional energy connectivity and resilience, with participants exchanging views on practical cooperation, energy transition pathways, and cross-border investments in energy development.
Hashtags
@aseanrussia · Post #1885 · 26.09.2025 г., 03:56
🗓 On September 25, the delegation of the Ministry of Economic Development of the Russian Federation 🇷🇺 took part in the 13th East Asia Summit (#EAS) Economic Ministers’ Meeting in Kuala Lumpur, Malaysia 🇲🇾. 🔹️The Meeting underscored the importance of fostering closer economic cooperation between ASEAN and the EAS Participating Countries and highlighted the importance of engaging in constructive dialogue, open communication, and collaboration to address challenges. 🔹️Participants also discussed possible areas for cooperation to support efforts to drive robust economic growth in the region.
Hashtags
@rusconct · Post #1850 · 11.10.2024 г., 07:20
🇷🇺 Russia's Foreign Minister Sergey Lavrov takes part in the 19th East Asia Summit (#EAS) 📍Vientiane, October 11, 2024
Hashtags
@aseanrussia · Post #1847 · 10.09.2025 г., 04:59
🗓 On September 10, Russia's Alternate SOM Leader, Director-General of the Department of Asian and Pacific Cooperation of the Russian MFA Mr. Alexey Ovchinnikov🇷🇺 participated in the East Asia Summit Senior Officials' Meeting (#EAS SOM) in Port Dickson, Malaysia 🇲🇾. 🔹️Senior officials discussed issues related to preparation for the EAS Summit in October and joint efforts on strengthening tangible cooperation within the EAS. #EAS
Hashtags
@aseanrussia · Post #1777 · 11.07.2025 г., 04:56
📸 Russia's Foreign Minister Sergey Lavrov takes part in the 15th meeting of the Foreign Ministers of the countries participating in the East Asia Summit (#EAS) 📍 Kuala Lumpur, July 11
Hashtags
@aseanrussia · Post #1343 · 23.10.2024 г., 12:11
🎙 Excerpts from the Comment by Russia's Foreign Ministry Spokeswoman Maria Zakharova on the developments around the East Asia Summit (#EAS). https://telegra.ph/Comment-by-Russias-Foreign-Ministry-Spokeswoman-Maria-Zakharova-on-the-developments-around-the-East-Asia-Summit-10-23
Hashtags
@aseanrussia · Post #1308 · 18.10.2024 г., 09:02
Ambassador of Russia to ASEAN H.E. Mr. Evgeny Zagaynov 🇷🇺 💬 "Attempts to politicize the East Asia Summit (#EAS) agenda are detrimental to the regional cooperation". https://m.antaranews.com/berita/4400313/rusia-ada-upaya-masukkan-geopolitik-di-ktt-asia-timur?utm_source=antaranews&utm_medium=mobile&utm_campaign=latest_category
Hashtags
@aseanrussia · Post #1297 · 11.10.2024 г., 04:21
🇷🇺 Russia's Foreign Minister Sergey Lavrov takes part in the 19th East Asia Summit (#EAS) 📍Vientiane, October 11, 2024
Hashtags
@aseanrussia · Post #1283 · 10.10.2024 г., 03:24
🛬 Russia’s Foreign Minister Sergey Lavrov arrives in Vientiane (Laos) to take part in the 19th East Asia Summit 🌏#EAS
Hashtags
@aseanrussia · Post #1281 · 23.09.2024 г., 10:06
🗓 On September 21, the delegation of the Ministry of Economic Development of the Russian Federation 🇷🇺 took part in the 12th East Asia Summit (#EAS) Economic Ministers’ Meeting in Vientiane, Lao PDR 🇱🇦. 🔹️The Meeting exchanged views on the global and regional economic developments and discussed how EAS Participating Countries can take concerted actions to mitigate global economic challenges. 🔹️Participants also discussed possible areas for cooperation to support efforts to drive robust economic growth in the region.
Hashtags
@aseanrussia · Post #1235 · 23.08.2024 г., 03:16
🗓 On August 22, Russian delegation 🇷🇺 took part in the East Asia Summit Senior Officials' Meeting (#EAS SOM) in Luang Prabang, Lao PDR 🇱🇦. 🔹️Participants discussed the preparation for the upcoming 19th EAS Summit in October 2024 in Vientiane and exchanged views on the EAS agenda. 🇷🇺 Russian Ambassador to ASEAN H.E. Evgeny Zagaynov underlined Russia's unwavering support of the Lao PDR during its ASEAN Chairmanship and emphasized the need to further promote tangible cooperation within the EAS in particular in such areas as fight against infectious diseases and tourism.
Hashtags