Что делать если нужно поставить какую-то 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
🚀CRYPTO REVIEW MORNING NOVEMBER 3: WHAT HAPPENED WHILE YOU WERE SLEEPING? 🚀
📉Market:
- BTC: $107,827 (-2% 24 hours, -5% 7 days) — low $107,928, high $111,167.
- ETH: $3,727 (-3% 24 hours, -7% 7 days).
- Top 10: DOGE -6.40% (24 hours), ADA -16.21% (7 days).
🌟Top News:
- Coinbase + BVNK: $2B acquisition talks — will strengthen stablecoin infrastructure (20% of Coinbase revenue). Expected to close by the end of 2025/beginning of 2026, after the GENIUS Act.
- Aster on the Moon: +30% after CZ's post about buying 2M+ tokens (~$2.5M). Trading volume x9 up to $2B, cap at $2.5B. Whales are shorting $70M on a pullback.
#Crypto#Bitcoin#ProphetaCommunity#Trading
💡While the market is red, we see opportunities! Use our tools👇
🚀$5.6B in BTC and ETH options expire today — expect volatility!
The crypto market is on edge: $5.6B in options expire today (BTC: $4.7B, ETH: $944.5M). Get ready for a move!
📈What's happening:
BTC: Pain point: $118K (key support), put/call = 1.10 — traders expect a drop to $110K or a surge to $120K.
ETH: Pain point: $4,400, put/call = 0.90 — moderate optimism.
Glassnode: BTC above short-term cost, but close to risk zone. ETH testing leverage.
🔮 Outlook: Expiration will increase volatility. Support held ($118K for BTC) – rally over the weekend. A breakout – volatility to $110K and below.
While the market is swinging, we're squeezing out profits – join us!
#Bitcoin#Crypto#ProphetaCommunity#Trading
🚨CRYPTO MARKET ANALYSIS BY PROPHET | April 6, 2026
The market rebounded after a tough Q1:
BTC — $70,062 (+4.04% 24h)
ETH — $2,163 (+5.15% 24h)
Total market — $2.39T (+3.3%)
Key levels right now:
BTC: Resistance $71k–$75k | Support $68k–$65k
ETH: Resistance $2,300–$2,390 | Support $2,050–$2,000
Fear & Greed = 39 (Fear). The short trend is bearish, but there is a relief rally amid institutional pressures. Grayscale expects a new BTC ATH as early as the first half of 2026.
PRACTICAL TIPS FOR YOU:
Take profits at resistance levels—don't be greedy.
Add only at support (BTC $68k, ETH $2,050).
Stops are mandatory—maximum 1–2% risk per trade.
Alts are on hold for now: keep an eye on SOL and XRP, they're poised to surge after BTC.
At Propheta Community, we make money in any market—bull, bear, or flat. Our strategies have been delivering consistent 20–50% monthly returns for over a year.
Want similar results?
Buy Propheta's ready-made strategies now → purchase link
Profit guaranteed at any time.
#ProphetaCommunity#CryptoTrading#BTC#ETH
💹MARKET OVERVIEW - APRIL 18, 2026
▫️Current Situation:
• BTC is trading in the $73,800 – $75,200 range. We've seen some upward movement in recent days, but the price has returned to consolidation. ETH is holding around $2,320 – $2,380. - Overall market capitalization is stable, but volatility remains elevated.
Key Influencing Factors:
• US tax season (April 15) is over, but its effects are still impacting liquidity.
• Geopolitical tensions and oil prices continue to weigh on risky assets.
• Institutions continue to carefully accumulate on dips (BlackRock and MicroStrategy are active).
▫️Key levels for futures traders:
• Support: $72,800 – $71,500 (critical zone)
• Resistance: $75,800 – $76,500
▫️Trading recommendations:
• The market is in a phase of accumulating tension. It's best to work with reduced volume.
• Avoid aggressive positions without a clear breakout of $76,000+.
• The $72,800–71,500 zone is potentially interesting for longs with a hard stop.
• For futures, favor strategies with a good risk/reward ratio (1:2 or 1:3).
Our channels have already been fully adapted to the current structure and continue to provide high-quality filtered signals. Choose a product that suits your trading style.
#Futures#ProphetaCommunity#Trading
🧠STARS PROMOTION — AN INVESTMENT MODEL WITH A HIGH WIN RATE
⭐️ In simple terms, what is Stars:
1. We created an AI Analyzer system that scans the entire futures market and searches for pairs that consistently perform according to the specified analysis strategy.
2. The system rechecks all pairs every 12 hours.
3. An additional 20 AI agents analyze the market using 20 important metrics and filter out false signals.
⭐️Stars channels are the final selection.
• They include only those pairs that have reached at least 6 take profits and virtually no stops over the past 6 months.
• There are a small number of signals—on average, 1 signal per day per channel (about 10 signals per month per channel).
• Three channels produce approximately 30 signals per month.
💵Example of profitability (conservative):
• 100% of signals reach at least TP3
• 80% of signals reach TP6
• After TP3, the stop loss is moved to breakeven
Average return per signal ≈ +3.0% (net movement without leverage)
🚀 With 30 signals per month:
Deposit $100 → +$90 net per month
Deposit $500 → +$450 net per month
Deposit $1,000 → +$900 net per month
Even with this many signals, a lifetime subscription is easily recouped in 1-2 months.
🎁Current promotion:
‼️ Lifetime access to all three Stars channels (5TF + 15TF + 30TF) — only 100 USDT
‼️ 90 spots left.
‼️ For every 10 spots sold, the price will increase by 20 USDT.
📲 Text @propheta_admin the word "STARS" — they'll reserve a spot at the current price of 100 USDT.
Don't miss out. The market is starting to gain momentum.
#ProphetaCommunity#Stars#Trading
Propheta Community: Futures Digest (Jan 19)
🔥 What's happening in the market?
· BTC: Dropped from $95.5K to $92.5K. The key level is $92,000. Holding above it offers a chance for recovery; a breakdown risks a fall towards $88K.
· ETH: Weak, hovering around $3,200. A breakdown could target $3,000. A sustained move above $3,400 is needed for growth.
· Liquidations: Nearly $900 million (mostly longs) in the past 24 hours.
💡 Key Market Shift: Bitcoin options open interest ($74.1B) has surpassed futures ($65.2B) for the first time. This is a game-changer—expect volatility to be more tied to US market hours and major options expiries.
🎯 Quick Trading Takeaways:
· Reduce leverage — the market is unpredictable.
· Range (flat) strategies: Be cautious—range boundaries are more easily broken by news spikes.
· Trend strategies: Confirm breakouts with volume; false breaks are becoming more common.
· Watch for regulatory news (CLARITY Act) and options expiries.
Right now, discipline and risk management are more important than ever. Trade your plan!
#ProphetaCommunity#Futures#Trading#Bitcoin