Что делать если нужно поставить какую-то 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
📢 Hunter Biden sues Rudy Giuliani over alleged privacy violations! 🕵️♂️ Lawsuit claims Giuliani is responsible for the destruction of Biden's digital privacy. 💥 Complaint alleges hacking, tampering, and dissemination of data obtained from Biden's alleged laptop. 📝 Giuliani's former attorney, Robert Costello, also named as a defendant. 🚨 Attorneys for Biden and Giuliani have yet to comment. 🔄 Stay tuned for updates on this developing story! #PrivacyMatters
https://www.foxnews.com/politics/hunter-biden-sues-rudy-giuliani-laptop-accuses-ex-trump-lawyerhacking
Subscribe to @BadVolfNews
Currently we are witnessing arrest of creator of main digital privacy respecting messenger Pavel Durov.
WHY THIS MATTERS:
With over 950 million users, Telegram is one of the last products with respect to digital privacy. Holding Durov accountable for content shared by users or for protecting user data from authorities sets a dangerous precedent moving on for everyone that wants to create a privacy first solutions. This is not just about one person. It’s about safeguarding the right to privacy for all of us as a collective.
This action is a serious threat to the fundamental right to privacy in the digital age. Telegram has been a vital tool for millions around the world, ensuring freedom of speech and protecting our personal data, as well as providing the outlet to freely share opinions and information from unwarranted intrusion.
WHAT CAN YOU DO:
We need to raise our voices and demand justice. Write to Amnesty International at [email protected] and urge them to support Pavel Durov and advocate for his release. Amnesty has a powerful voice on global platform and has been instrumental in defending human rights across the world. If we unite and work together by sending our concerns to them with requests, we will get justice to work.
Let’s stand together for our fundamental digital rights and make sure this doesn’t go unnoticed. 🛡️
#Repost to other places and channels in order to reach broader masses and communities, so we can get more gravitas in order to protect human right to digital privacy
We as humans are stronger and louder in unity and mass.
Line for Enquiries: [email protected]
Mail template: https://telegra.ph/Amnesty-Mail-Template-08-25
#FreeDurov#PrivacyMatters#DigitalRights#AmnestyInternational
Zoom Addresses EU Privacy Concerns and Updates Terms of Service
Greetings! In response to discussions about potential EU privacy law implications, Zoom issues a statement and revises its Terms of Service. The focus? Ensuring customer data isn't utilized to train AI models.
Zoom's statement and Terms affirm that user-generated content, including audio, video, chat, and more, isn't employed for training Zoom's or any third-party AI models. This step aims to dispel any concerns.
Zoom initially shared its statement on August 7 and later updated it on August 11, aligned with the revised Terms. The shared stance now unequivocally states, "Zoom does not use any of your customer content to train AI models."
Earlier, a Stack Diary article flagged changes to Zoom's March Terms, raising potential concerns about broad data utilization for AI model training. Zoom's quick response aims to address these concerns and reaffirm privacy commitments.
#Zoom#PrivacyMatters#TermsOfService#AIModels#DataProtection#PrivacyLaw#TechUpdates
Hey there, fellow freedom fighters! 🚀⚡
Imagine Nostr leveling up with custom NIPs that let us plug in ANY crypto we want. $XMR for ultimate privacy, $TON for seamless Telegram vibes, or whatever floats your boat. And don't forget stacking Bitcoin + Lightning Network ⚡ with Cashu ecash for that unbreakable privacy layer!
This is how we build unstoppable finance, censorship-resistant social media, decentralized identity, and true non-KYC freedom tech. No more chains just pure sovereignty! Who's ready to make it happen? 🔥
Join the resistance: t.me/DanishCryptoDK | npub1c3gyzcvf2xakqy4vy06umu7hgpr97ttyp05yrlvmk8g8xvmse57qj286r6
#PrivacyMatters#Nostr#XMR#TON#Bitcoin#Lightning#Cashu#Decentralization#FreedomTech
Hey there, fellow freedom fighters! 🚀⚡
Imagine Nostr leveling up with custom NIPs that let us plug in ANY crypto we want. $XMR for ultimate privacy, $TON for seamless Telegram vibes, or whatever floats your boat. And don't forget stacking Bitcoin + Lightning Network ⚡ with Cashu ecash for that unbreakable privacy layer!
This is how we build unstoppable finance, censorship-resistant social media, decentralized identity, and true non-KYC freedom tech. No more chains just pure sovereignty! Who's ready to make it happen? 🔥
Join the resistance: t.me/DanishCryptoDK | npub1c3gyzcvf2xakqy4vy06umu7hgpr97ttyp05yrlvmk8g8xvmse57qj286r6
#PrivacyMatters#Nostr#XMR#TON#Bitcoin#Lightning#Cashu#Decentralization#FreedomTech
🚀TON Gifts Gambling Scene: Crash, Roulette & Pure Degen Plays – November 2025🚀
Hi degens! 🔥 You've mastered markets, stacked free daily wins, and lent Gifts for passive yields. Now enter the high-risk arena: apps where you bet Gifts (or TON) on crash, roulette, plinko, dice, or winner-takes-all pots.
These are pure gambling..
house edge exists, volatility is brutal, most players lose long-term.
Only play what you can afford to burn.
No financial advice, just tools for responsible rebels.
But for those who love the rush... here’s the hottest Gift gambling spots right now. All on TON, no KYC, instant action 🙈
⚠️ Current Ecosystem Snapshot (Nov 21, 2025)
- Gifts market cap stable ~$185-195M (down slightly from $202M summer peak but holding strong)
- Stickers surging hard (600%+ YTD, ~$30M+ cap) but Gifts still 6-8x bigger
- Limited drops & celebrity collabs still printing 50-300x for holders
- TON NFT volume routinely top 3 chains globally – all fueled by Telegram's 1B users going degen
🎰 Top Gifts Gambling Apps (High Stakes Edition)
1. Rolls – Let's Fucking Roll 🎡
Winner-takes-ALL Gift pots! Deposit Gifts→ more valuable Gift = higher win chance. 2+ players trigger the roll. They also let you stake Gifts for +25% APR TON rewards (passive play). Pure adrenaline.
https://t.me/rollsgame_bot/app?startapp=ref_izDyhtZZBA
2. Balls
Plinko + Ball Escape madness. Drop balls, watch physics do the rest, win big on drops.
https://t.me/myballs/app?startapp=ref_tzdt0z2l7bj
3. Bust'a Gift
Classic crash but with Telegram Gifts on the line. Time your cashout or get rekt.
https://t.me/bustagift_xbot/app?startapp=pal403954791
4. Epic Gift
Crash game supporting both Gifts & TON bets. Also has daily free rolls (best of both worlds).
https://t.me/epic_gift_bot/app?startapp=ref_JPFOFQ
5. Gift Phase
Double, Dice, Spin Roulette.
bet small, win your first (or next) Gift fast.
https://t.me/GiftPhaseBot/GiftPhase?startapp=403954791
6. Pilot
Clean crash game, TON only, super smooth multipliers. For the pure aviator lovers.
https://t.me/BullApp_bot?start=403954791
7. GiftUp
Crash + Crates opening. Unbox or ride the multiplier with your Gifts.
https://t.me/GiftUpRobot?start=403954791
These apps move FAST..
new ones pop up, some get rugged, always check community sentiment in @DCH_Community before going hard.
Remember rebels: Gambling is entertainment, not income. Stack on markets & lending for real alpha. But if you're feeling lucky and can handle the swing... LET’S FUCKING ROLL 🎲
What's your craziest win or worst rug story? Drop it in the chat – we learn together ✊
We are #TheRealDigitalResistance
#TelegramGifts#TONGambling#GiftCrash#NoKYC#Web3Degen#PrivacyMatters