Что делать если нужно поставить какую-то 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
Demonstrators in downtown Toronto took over the streets at midnight as the new year began, demanding justice and an end to the Israeli occupation in Gaza.
“No celebration until liberation.”
#NewYear2026
❗ New Year Address by Russian Permanent Representative to the UN Office in Geneva, Ambassador Gennady Gatilov:
Dear friends,
Dear colleagues,
Dear readers of our information resources,
2025 year is passing away.
🏅 It was marked by events of great importance for your country. The most important one was the celebration of the 80th anniversary of Victory in the Great Patriotic War and World War II - an event of enduring significance for the fate of all humanity. This anniversary serves as a reminder of the decisive contribution of the peoples of the Soviet Union to the defeat of Nazism, the colossal price paid for the liberation of the world, and our shared duty to carefully preserve the historical truth, to resist attempts to distort it, and to prevent a repetition of the tragedies of the past.
🇺🇳 In 2025, we also celebrated the 80th anniversary of the United Nations, whose establishment is inextricably tied with the Victory in the World War II. This anniversary became not only a milestone in understanding the role of the UN in the modern world order as a unique mechanism of international multilateral cooperation, but also served as a reminder that it is essential to maintain dialogue, respect the sovereign equality of States, and seek for collective solutions rather than confrontation.
Dear friends and colleagues!
🤝 The past year brought many trials, which Russia has faced with dignity. I am sure that the same will happen in the upcoming year. In the face of new challenges, we must not forget the value of multilateralism, the responsibility of states for maintaining peace and security, and the need to strictly adhere to the principles of the United Nations Charter, which remains fully relevant and optimally meets the demands of the multipolar era.
🇷🇺 The Russian Federation has consistently supported and will continue to support the strengthening of the UN's central coordinating role in international affairs and for a more just and democratic international order, based on a balance of interests and respect for cultural, historical and civilizational diversity. We are convinced that only through equal cooperation the international community can respond effectively to global challenges and ensure sustainable development for all peoples. This is precisely what we are working on here in the international UN Geneva.
🎄 As we approach the New Year of 2026, I would like to wholeheartedly wish our dear colleagues in the diplomatic community, including the Russian staff of the secretariats of international organizations in Geneva, our dear compatriots living in Switzerland good health, peace, and prosperity. May the coming year bring greater mutual understanding and trust in the name of a stable and just future.
✨Dear friends, have a happy New Year!
#NewYear2026
Happy New Year, QuestGrid Explorers! 🚀 2026 is here, and we're ready for even more Web3 missions, crypto rewards, and exciting campaigns! Let's make this year your most profitable and adventurous yet. What missions are you hoping to conquer first? #QuestGrid#Web3#Crypto#NewYear2026
Итоги 2025 года от UzVC
Дорогие коллеги, партнёры и стартапы!
Подходит к концу насыщенный событиями 2025 год, и мы хотим поделиться с вами главными достижениями и поблагодарить за доверие.
Чего мы достигли:
✔️ Рассмотрели более трех сотен стартапов из Узбекистана и региона
✔️ Проинвестировали 5 стартапов, в том числе TezzGO и совместно с SQB Ventures инвестировали в Robosell
✔️ Стали якорным инвестором в запуске 2 местных венчурных фондов, таких как Imkon Ventures и Sarmo Ventures
✔️ Проинвестировали и привели первые два международных венчурных фонда в Узбекистан в лице Domino Ventures и Big Sky Capital
✔️ Запустили с Techstars национальную программу в стране
✔️ Провели ряд образовательных мероприятий для предпринимателей в регионах страны
✔️ Организовали масштабное событие UzVC SGP 2.0 Demo Day Central Asia Venture Conference 2025
С наступающим Новым 2026 годом!!! 💥💥💥
Желаем всем основателям — смелости в решениях, инвесторам — прибыльных сделок, а экосистеме — роста и процветания. Пусть новый год принесёт прорывные идеи и успешные реализации!
Спасибо, что были с нами в этом году. Впереди — ещё больше возможностей! 🥂🥂
————
UzVC 2025-yil yakunlari
Hurmatli hamkasblar, hamkorlar va startaplar!
Voqealarga boy 2025-yil yakuniga yetmoqda va biz siz bilan asosiy yutuqlarimizni bo'lishmoqchimiz va ishonchingiz uchun minnatdormiz.
Nimalarga erishdik:
✔️ O'zbekiston va mintaqadan uch yuzdan ortiq startaplarni ko'rib chiqdik
✔️ 5 ta startapga investitsiya qildik, jumladan TezzGO ga va SQB Ventures bilan hamkorlikda Robosell ga investitsiya qildik
✔️ Imkon Ventures va Sarmo Ventures kabi 2 ta mahalliy venchur fondlarini ishga tushirishda yakor investor bo'ldik
✔️ Domino Ventures va Big Sky Capital shaxsida O'zbekistonga birinchi ikkita xalqaro venchur fondiga investitsiya kiritdik va ularni O`zbekiston bozoriga olib keldik
✔️ Techstars bilan mamlakatda milliy dasturni ishga tushurmoqdamiz
✔️ Mamlakat hududlarida tadbirkorlar uchun bir qator ta'lim tadbirlarini o'tkazdik
✔️ UzVC SGP 2.0 Demo Day Central Asia Venture Conference 2025 keng ko'lamli tadbirini uyushtirdik
Kirib kelayotgan Yangi 2026-yil bilan!!!💥💥💥
Barcha asoschilarga — qarorlarda jasorat, investorlarga — foydali bitimlar, ekotizimga esa — o'sish va gullab-yashnashni tilaymiz. Yangi yil ilg'or g'oyalar va muvaffaqiyatlarni olib kelsin!
Shu yil biz bilan birga bo'lganingiz uchun rahmat. Oldinda — yanada ko'proq imkoniyatlar! 🥂🥂
————
UzVC 2025 Year in Review
Dear colleagues, partners and startups!
The eventful year of 2025 is coming to an end, and we want to share our key achievements with you and thank you for your trust.
What we achieved:
✔️ Reviewed over three hundred startups from Uzbekistan and the region
✔️ Invested in 5 startups, including TezzGO and jointly with SQB Ventures invested in Robosell
✔️ Became an anchor investor in launching 2 local venture funds, such as Imkon Ventures and Sarmo Ventures
✔️ Invested in and brought the first two international venture funds to Uzbekistan: Domino Ventures and Big Sky Capital
✔️ Launched a national program in the country with Techstars
✔️ Conducted a series of educational events for entrepreneurs in the regions of the country
✔️ Organized a large-scale event UzVC SGP 2.0 Demo Day Central Asia Venture Conference 2025
Happy New Year 2026!!!💥💥💥
We wish all founders — courage in decisions, investors — profitable deals, and the ecosystem — growth and prosperity. May the new year bring breakthrough ideas and successful implementations!
Thank you for being with us this year. Even more opportunities ahead! 🥂🥂
#NewYear#NewYear2026#2025review
Новый год уже не за горами, и отели начинают раскрывать свои праздничные программы✨
Дубай — одно из самых ярких направлений для встречи Нового года: роскошь, стиль и незабываемая атмосфера мегаполиса на берегу Персидского залива.
Address Beach Resort 5* — идеальное место, где городской ритм сочетается с курортным комфортом премиум-класса. Отель расположен в самом сердце JBR, рядом с Dubai Marina, The Walk, пляжем The Beach и самым большим колесом обозрения в мире — Ain Dubai.
Новогодняя программа:
начало — 20:30, до полуночи
стоимость — от 555 AED(около 12,500 руб.)
гости могут выбрать одну из нескольких зон в отеле для празднования
📄 Подробная программа празднования — в прикреплённом файле.
Хотите узнать больше об отелях Emaar Group?
Смотрите запись нашего вебинара
#МойАгент#EmaarHotels#Dubai#AddressBeachResort#NewYear2026#travelprofessionals#отелиДубая