TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

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

Резултати

Пронајдени 7 слични објави

Пребарај: #schumannresonance

当前筛选 #schumannresonance清除筛选
My Lifeguard

@lifegaurdhelp · Post #39200 · 11.02.2026 г., 23:56

Schumann Resonance Today – Power 51 & 1 Hr Blackout ✨#SchumannResonance Today 11/2/2026 17:00 UTC https://www.disclosurenews.it/schumann-resonance-today/

🐎 Mustang Debbie Channel🐎

@mustangdebb · Post #47769 · 10.05.2026 г., 00:08

https://x.com/mrmbb333/status/2053139040468418953?s=52 WHILE PEOPLE WERE SLEEPING… EARTH’S FREQUENCY WENT FULL WHITE-OUT AGAIN Overnight, the Schumann Resonance exploded into repeated white-out bursts for more than 5 hours straight. Not one quick spike. Not normal background activity. The chart kept surging, fading, then surging again — staying highly energized deep into the night while most people were asleep. And the amount of white showing across the chart is hard to ignore. Something kept the signal highly charged for hours. Did anyone wake up suddenly last night? • Vivid dreams • Pressure or headaches • Ringing ears • Restless sleep • Electronics acting strange • Pets acting off What are you noticing where you are? #MrMBB333#SchumannResonance#SpaceWeather

Question Everything

@gratefulpatriot · Post #90727 · 20.04.2026 г., 02:17

https://i.fixupx.com/i/status/2045928133946433932 UNKNOWN ACTIVITY SHOWING UP AGAIN IN EARTH’S FREQUENCY For nearly 7 hours, the Schumann Resonance monitor showed sustained saturation across multiple bands. The signal didn’t clear. It stayed compressed across the chart. This isn’t a normal pattern. It follows right behind the last disturbance. Back-to-back activity now. Something is passing through the system. Origin unclear. Monitoring. #MrMBB333#SchumannResonance#SpaceWeather

🐎 Mustang Debbie Channel🐎

@mustangdebb · Post #47912 · 10.05.2026 г., 18:56

https://x.com/mrmbb333/status/2053541044068012078?s=52 SOMETHING KEPT HITTING EARTH’S FREQUENCY TODAY ⚡️ The Schumann Resonance has been showing something difficult to ignore. The graph has been cycling through repeated bursts of intense activity, including multiple sustained whiteout periods and powerful 50 Hz pulses lasting close to an hour at a time. This wasn’t a quick spike and fade. The signal kept returning over and over with very little quiet in between. At several points the chart looked completely overwhelmed before briefly calming… only to surge right back again. The level of prolonged saturation showing up today has been unusual. Anyone else feeling like today has felt unusually heavy, restless, intense, or just “off”? Drop your location below. #MrMBB333#SchumannResonance#EarthWatch#SpaceWeather

🐎 Mustang Debbie Channel🐎

@mustangdebb · Post #48418 · 13.05.2026 г., 17:59

https://x.com/paulgoldeagle/status/2054619457520271823?s=52 🚨 ANOTHER MASSIVE SURGE IN THE EARTH'S FREQUENCY TODAY. 🚨 The Schumann Resonance—the natural electromagnetic heartbeat of our planet—is lighting up the charts again today. We are seeing strong, bright bands of energy blasting through the atmosphere for hours on end. Instead of feeling heavy, today's energy is highly electric. The Schumann Resonance is created by global lightning and electromagnetic waves trapped between the Earth's surface and the edge of space. When this field gets this charged up, a lot of people across the country report feeling it directly in their nervous systems. Here is what people are experiencing right now: • Racing thoughts and mental restlessness • Interrupted sleep and incredibly vivid dreams • Sudden pressure in the head or a "buzzing" feeling in the body • Random bursts of energy followed by quick exhaustion • A feeling like you just can't slow down or relax With all this extra static in the air, your body needs a break to process it. Drink plenty of water, step away from the overstimulation, and get some solid rest to help your system reset and ground itself. Monitoring the electric pulse of our planet here at Glynce. 📡🩵🟣 👇 Are you feeling any of these electric "symptoms" today? Drop what you are experiencing in the comments! #Glynce#SchumannResonance#EarthScience#SpaceWeather#ElectromagneticField#EnergyShift#BreakingNews#Frequency