Что делать если нужно поставить какую-то 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
TON — LIVE: Launch of TMAIL on TON Blockchain
#TON#TMAIL
TON — LIVE has announced the launch of TMAIL, a private mail service on the TON blockchain. Users can mint a unique address as an NFT, linked to their wallet, for sending and receiving emails.
Source: link
@tonlines
Русский TON: Tmail Launches as Secure Blockchain Email
#Tmail#blockchain
Русский TON highlights the launch of Tmail, a blockchain-based private email service that replaces traditional passwords with NFT-based addresses. This innovative project aims to provide a secure emailing experience by linking accounts to blockchain wallets. Tmail also offers a giveaway of 50,000 GRAM tokens.
Source: link
@tonlines
📬Tmail — I’ve been using it daily since beta. Honest review from someone who’s lived in this inbox for 6 months straight
Hey crypto family!
👋
Email was the same for 50 years: centralized, scanned, full of spam, passwords, captchas.
We waited years for real Web3 email… and it’s finally here.
And it’s already BETTER than Gmail. Seriously.
I’ve been in since closed beta (May 2025) → now I own 27 addresses.
Main one: [email protected]📱
Here’s why it’s already the best email I’ve ever used:
🔥Address
Gmail → [email protected]
Tmail → [email protected] (you own it forever. Web3 mail) + [email protected] (works everywhere web2 mail, including Telegram 2FA)
🔥Privacy
Gmail → scanned & sold
Tmail → E2E encryption + IPFS/TON Storage. Even the Tmail team can’t read your emails
🔥Spam
Gmail → pure hell
Tmail → smart filter + bulk unsubscribe in one click
🔥Attachments
Gmail → basic
Tmail → photo/video preview right in the email
🔥Multiple accounts
Gmail → pain and suffering
Tmail → 100+ addresses, switch in 1 click, pin 10 favorites (Premium)
🔥Speed
Gmail → okay
Tmail v1.5 → emails & attachments load instantly
🔥Extras
Gmail → ads
Tmail → AI assistant (Premium), contacts, subscription manager
🔥Login
Gmail → password + endless 2FA
Tmail → just connect TON wallet. Done.
Works perfectly in Telegram Mini App (@TheTmail) and on web app.tmail.ae
I get Telegram codes, bank confirmations, exchange mails — everything arrives instantly. Zero captchas.
The NFT now pays for itself, 📬Tmarket is a money printer, floor is climbing, big marketing hasn’t even started yet.
→ 0–1% fees on Tmarket (instead of 5%)
→ 50% of platform profit from your referrals
→ +10% instant when someone mints via your link
→ Rarity ranks live
→ $TMAIL token airdrop coming (shorter = bigger bag)
→ Floor already climbing hard, many names 5–20x
Tmarket.icu is a cheat code: Premium, Stars, Steam, eSIM, TON top-ups → cheapest anywhere + passive income.
TON going 300M+ users soon.
When normies wake up → good names = gone, floor = 4-figures.
I’m not selling any of mine.
Grab your name before the masses wake up →📬Tmarket or on https://getgems.io/tmail
(Pro tip: mint a few short ones now, thank me in 2026 )
See you in the inbox legends 💎
@DanishCryptoDK
[email protected] 📬
#Tmail#TON#Web3#NFT#Email#Crypto#Telegram#Tmarket#TheOpenNetwork
📬Tmail — I’ve been using it daily since beta. Honest review from someone who’s lived in this inbox for 6 months straight
Hey crypto family!
👋
Email was the same for 50 years: centralized, scanned, full of spam, passwords, captchas.
We waited years for real Web3 email… and it’s finally here.
And it’s already BETTER than Gmail. Seriously.
I’ve been in since closed beta (May 2025) → now I own 27 addresses.
Main one: [email protected]📱
Here’s why it’s already the best email I’ve ever used:
🔥Address
Gmail → [email protected]
Tmail → [email protected] (you own it forever. Web3 mail) + [email protected] (works everywhere web2 mail, including Telegram 2FA)
🔥Privacy
Gmail → scanned & sold
Tmail → E2E encryption + IPFS/TON Storage. Even the Tmail team can’t read your emails
🔥Spam
Gmail → pure hell
Tmail → smart filter + bulk unsubscribe in one click
🔥Attachments
Gmail → basic
Tmail → photo/video preview right in the email
🔥Multiple accounts
Gmail → pain and suffering
Tmail → 100+ addresses, switch in 1 click, pin 10 favorites (Premium)
🔥Speed
Gmail → okay
Tmail v1.5 → emails & attachments load instantly
🔥Extras
Gmail → ads
Tmail → AI assistant (Premium), contacts, subscription manager
🔥Login
Gmail → password + endless 2FA
Tmail → just connect TON wallet. Done.
Works perfectly in Telegram Mini App (@TheTmail) and on web app.tmail.ae
I get Telegram codes, bank confirmations, exchange mails — everything arrives instantly. Zero captchas.
The NFT now pays for itself, 📬Tmarket is a money printer, floor is climbing, big marketing hasn’t even started yet.
→ 0–1% fees on Tmarket (instead of 5%)
→ 50% of platform profit from your referrals
→ +10% instant when someone mints via your link
→ Rarity ranks live
→ $TMAIL token airdrop coming (shorter = bigger bag)
→ Floor already climbing hard, many names 5–20x
Tmarket.icu is a cheat code: Premium, Stars, Steam, eSIM, TON top-ups → cheapest anywhere + passive income.
TON going 300M+ users soon.
When normies wake up → good names = gone, floor = 4-figures.
I’m not selling any of mine.
Grab your name before the masses wake up →📬Tmarket or on https://getgems.io/tmail
(Pro tip: mint a few short ones now, thank me in 2026 )
See you in the inbox legends 💎
@DanishCryptoDK
[email protected] 📬
#Tmail#TON#Web3#NFT#Email#Crypto#Telegram#Tmarket#TheOpenNetwork
Tmail Community 💌 (Telegram)
🎉 Winners of New Year Giveaway
The auction has been successfully completed🔥
Thank you to everyone who participated in our event! Here's the list of our lucky winners:
🏆Grand Prize Winner: 500 $TON + Special NFT: UQAv2olsFSZHrd5QE8_e0uqSVERmSuCULa6QYjfJwnGb6Lfv
🎁 Random Winners: Each received 5 TON
1️⃣UQCn0uTEIFZUp7YOHSum0XKNvcWNdCBVyfmyKSRxoPNT-s3T
2️⃣UQDXec16Kj543emSld1fCStGQyvUgFrMDtr1ie7ghTJej8up
3️⃣UQCNfpcXEmnRGas0VeAUM18x8kgfaUWJHytSY1DWqf4mDXUn
4️⃣UQAJFrSqc06qYeqwFkhSYC4THJoA-NczIvAoWtAxuxJDpuOr
5️⃣UQD0NeGGvR_xZ4EhKJllPSoPY9cbfmj-iaePSvgNd5M0XTUe
6️⃣UQAYMvWB_Z45bkrcqgRWAnC3mv15p08ySi0nM-Q8k5Afa3F7
7️⃣UQDvRTLLBL2td20Gq6Cjj6O-K8r4a0fuU-hI2fQHYPX_Ir4E
8️⃣UQBu3mfft-VlV6O9gicr3GyqXq0BI_X3MRps154BDwZxs9cv
9️⃣UQDwreWMrQqNyyhB6k-EGHCAhhmmZ91PtQI0YZkf-jI4r1MC
1️⃣0️⃣UQBnA0Ei03fW6zrqO6nswdQgY8BwgufVwAXbT40VoTQ1zttT
Congratulations to all the winners 🎊
If you didn’t win this time, don’t worry — more exciting events and surprises are coming soon ❤️
Miniapp | Webapp
#NewYear#tmail#ton#nft#dns#email#mail#web3#Giveaway
🚀Degen Privacy Stack 2026: Own Your Comms with No-KYC Crypto Tools – From eSIMs to Encrypted Chats!
here's the ultimate blueprint for true digital sovereignty – all powered by crypto, privacy keys, and zero KYC hassles. Stay ghosted in a surveillance world:
- Degenphone eSIM Mastery: Tokenize real eSIM phone numbers as NFTs on Solana/TON. Own a working number for SMS, calls, and data plans – mint, trade, activate anonymously via blockchain. No ID, no docs – just your wallet and privacy keys for instant, traceless global connectivity.
- tMail for Ephemeral Emails: Grab disposable, auto-expiring emails without KYC. Crypto payments optional for premium anonymity – link to your setups for secure logins that vanish post-use, keeping your real identity locked away.
- Nostr Protocol Freedom: Decentralized social with pub/priv keys – no email/phone signup, pure P2P relays. Zap sats via Lightning, build uncensorable networks. Own your data, migrate keys seamlessly for ultimate control.
- SimpleX Chat Supreme: E2EE messenger with no user IDs – connect via QR/one-time links. Amp up with white noise vector sessions: Inject random noise into traffic for anti-analysis, quantum-resistant encryption, and self-destructing messages.
- Vector Messenger Edge: Nostr-based, zero-metadata encryption for texts, media, voice. BIP-39 wallet integration turns your account into a crypto vault – plausible deniability and no-compromise privacy.
- White Noise App Stealth: Nostr-powered secure messenger with MLS end-to-end encryption. Forward/post-compromise security, identity-free – massive scalable groups without leaks.
- 0xChat Lightning Vibes: Nostr secure chat with private key login – no reg, E2EE DMs/groups, voice/video, Cashu/Lightning payments. Encrypted everything, alias keys for extra secrecy.
- Video Calls on Honey HiveTalk: Nostr-first conferencing at https://honey.hivetalk.org – Lightning-powered rooms, desktop-optimized for private group calls. Zap to join/active, no KYC barriers.
Stack these for crypto trades, activism, or pure freedom – own your phone, email, chats with crypto keys only. No Big Tech oversight!
#DegenPrivacy#NoKYC#CryptoSovereignty#Nostr#SimpleX#VectorMessenger#WhiteNoiseApp#0xChat#Degenphone#tMail#HiveTalk#PrivacyTools2026
Your fave stack addition? Zap or reply! 🔒👻