@Chelsea_fc_worldwide · Post #177247 · 14.05.2026 г., 09:35
Liam Delap is always on the winning team! 🧐 #CFC
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
Пребарај: #cfc
@Chelsea_fc_worldwide · Post #177247 · 14.05.2026 г., 09:35
Liam Delap is always on the winning team! 🧐 #CFC
Hashtags
@Chelsea_fc_worldwide · Post #177192 · 11.05.2026 г., 10:37
11/05/14 📆 Ashley Cole's final #CFC appearance. 💙
Hashtags
@Chelsea_fc_worldwide · Post #177022 · 29.04.2026 г., 14:36
🚨 Chelsea are now looking at a list of around 7 or 8 names to take over permanently. One of those under consideration is Iraola. After hiring and firing 4 permanent coaches in as many years, the club do not want to rush this decision. (Simon Johnson Sport) #CFC
Hashtags
@Chelsea_fc_worldwide · Post #177017 · 29.04.2026 г., 09:34
🚨 BREAKING: Chelsea captain Millie Bright has retired from football with immediate effect after 12 years, 314 appearances and 20 trophies. Bright will be staying on at the club as a trustee of the #CFC Foundation and starting a new role as a Chelsea ambassador. 🗣️ Bright: “Representing Chelsea over the last 12 years has been everything to me, but I'm now ready to say goodbye to playing football. I’ve given all I can, and I never wanted to fight for any other badge. “It’s now time, and I'm ready to go into a new era. I’m always going to be Chelsea, but just in a different way.” Chelsea will mark Bright’s retirement on May 16 at their final WSL game of the season against ManchesterUnited. 🔗 Ben Jacobs
Hashtags
@Chelsea_fc_worldwide · Post #177016 · 29.04.2026 г., 09:33
🚨🇸🇳 Juventus are monitoring Nicolas Jackson, and can imagine a loan move for him. AC Milan are also monitoring. (Plettigoal) #CFC
Hashtags
@Chelsea_fc_worldwide · Post #176983 · 27.04.2026 г., 07:31
🚨 Joe Cole tells Frank Lampard to stay away from Chelsea job: "Frank should stay away from it. The temptation for Frank, because he loves the club, would be to come back and give it another whirl." "If I was him, I wouldn’t go to Chelsea. In any job, you’re being judged on your results but [at Chelsea] you don’t have full control over what you can do. That’s insane." #CFC
Hashtags
@Chelsea_fc_worldwide · Post #176957 · 26.04.2026 г., 10:43
🚨🇪🇸 Andoni Iraola would be more than happy to continue in the PL. He would be KEEN on becoming the next Chelsea manager! Nothing decided by Chelsea as in the early stages and nothing advanced. (Fabrizio Romano) #CFC
Hashtags
@Chelsea_fc_worldwide · Post #176753 · 16.04.2026 г., 14:57
🚨BREAKING: Moises Caicedo to sign new Chelsea contract. [Via telegraph] 🚨🔵 BREAKING: Chelsea are closing in on new deal for Moisés Caicedo! The agreement will be valid until June 2033 with final details being sorted, as @CLMerlo reports. Caicedo has given green light to #CFC stay for long term. [Via Fabrizio Romano]
Hashtags
@Chelsea_fc_worldwide · Post #176641 · 09.04.2026 г., 21:14
🚨 Breaking: Morgan Rogers likely to leave this summer even if Aston Villa get UCL. Chelsea, Arsenal, Liverpool, Utd are interested. £80m is the starting point figure for negotiations. #CFC looking for an attacker who can play off the left or central. [Via Ben Jacobs]
Hashtags
@Chelsea_fc_worldwide · Post #176298 · 20.03.2026 г., 17:44
🔵 UFC fighter Merab "The Machine" Dvalishvili visits Stamford Bridge. 👊 #CFC
Hashtags
@Chelsea_fc_worldwide · Post #176257 · 18.03.2026 г., 19:48
🚨 Fabrizio Romano: "There is something happening behind the scenes. My understanding is that there has been a conversation for some months between Enzo Fernandez and Chelsea to try to find a solution over contract terms to try to adjust the contract. At the moment, still no agreement." "If they can't find a solution, which I'm sure they will try to, Enzo could be open to exploring options in the summer." #CFC
Hashtags
@Chelsea_fc_worldwide · Post #176238 · 17.03.2026 г., 22:10
❗️What message do you have for Clearlake/BlueCo? 👇 #CFC
Hashtags