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

Резултати

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

Пребарај: #sd

当前筛选 #sd清除筛选
American Crypto©

@americancryptotrading · Post #27617 · 11.05.2026 г., 13:43

🇺🇸#SD Volumes are huge🔥 Bullish rally is coming✈️ Stader isn’t trying to be another hype project. They’re building actual staking infrastructure across multiple chains👀 $SD American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27601 · 26.04.2026 г., 14:16

🇺🇸#SD accumulating at the huge volumes🔥 Bullish🐃 People chase hype. Smart money looks at structure. Stader (SD) has: less supply + real revenue flow That matters 🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27504 · 15.01.2026 г., 13:01

🇺🇸#SD Cyclical pump is playing✈️ Do not miss $SD while it's still at the dip🔥 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27494 · 06.01.2026 г., 13:50

🇺🇸#SD keeps to its Cycle✔️ Bear Trend is over❌Bullish Trend Started✅ MACD crosses the mid-lne as well as its signal line crossed for bullish🐃 Stader keeps staking flexible instead of locking funds. At the same time, $SD completed its buyback just yesterday🧱 https://etherscan.io/address/0xefe40ff167a89ce3babdad161d41d798ca7116b2#tokentxns American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27485 · 29.12.2025 г., 12:34

🇺🇸#SD This chart keeps repeating the same story. Sharp sell-off → momentum drains → aggressive upside leg follows. Price is now sitting right at that transition point again. 🧩 Downside move looks complete, and the curve is starting to turn — this is where new trends are born, not extended lower. 📉➡️📈 If history rhymes, the next phase is a strong expansion move. Buybacks coming soon 🔥 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27453 · 28.11.2025 г., 13:02

🇺🇸#SD Price has completed another clean rounded bottom formation at the lower boundary of the long-term structure. The reaction from this zone is strong and mirrors previous cycle reversals. 🔥 Each prior rounded bottom led to a powerful upside expansion, and the current setup is replicating the same rhythm with high precision. The structure shows clear exhaustion of sellers and a decisive shift in momentum. ⚡️ With the pattern repeating and demand stepping in aggressively, price is now positioned for a sustained bullish continuation toward higher macro levels. The next leg up is not just likely—it’s expected. 🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27371 · 10.09.2025 г., 15:24

🇺🇸#SD/USDT Bullish Flag on weekly🐃 Looking for the retest of the MajorSupplyZone and more upside in case of a breakout🚀 Stader fundamentals keep improving — scaling TVL, expanding volumes, and consistent demand from both LST and Cabbage. This aligns with the key catalyst → buybacks roll out next week. American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27217 · 15.04.2025 г., 13:28

🇺🇸#SD/USDT Good recovery on $SD ☝️ Once we are back above the red support, send it✈️ Fundamentals: Stader released cabbage (sign for waitlist to be the first to try) + 500k coins bought from the market😎 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27190 · 20.03.2025 г., 11:31

🇺🇸#SD/USDT Falling wedge below the resistance zone🧐 Expecting a retest of the one and breakout📈 Much Awaited Stader Quarterly Buyback happening this week - Add the fact there are no unlocks after March🔥 $SD is going full deflationary! American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27089 · 19.12.2024 г., 15:11

🇺🇸#SD/USDT Low + Higher Low We are going to break that resistance🚀 $750mln in TVL New product cabbage is coming out + Binance List added $SD American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27065 · 28.11.2024 г., 15:41

🇺🇸#SD/USDT We got a fakeout below the symm. triangle and now breaking out of the one📈 Whitepaper will be released at 4th December | $SD is only $50mln MC still early🔥 American Crypto©

Hashtags

Michaël Van de Poppe Official

@michaelvandepoppeanalyst · Post #4720 · 02.09.2024 г., 13:29

#SD Accumulating structure remains unchanged️ I keep accumulating! Stader buybacks 286.2k SD ($150k) off CEXs - at this rate almost 3.5% circulating supply annualised will be bought from the market BULL️

Hashtags

123•••1011
ПретходнаСтраница 1 од 11Следна