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

Резултати

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

Пребарај: #income

当前筛选 #income清除筛选
Tesla Calls Official

@teslacallsofficial · Post #10022 · 15.03.2026 г., 20:51

🔥$INCOME Entered this position as a speculative play within the SOLANA ecosystem. Monitor pullbacks carefully, manage entries with discipline, and always conduct your own due diligence before participating. #TSLA X: https://x.com/i/communities/2033055064420659307 🔗 Contract: https://solscan.io/token/5QmbJw7mM6tcCdXVy8ftc2bu8izded7Etc57TMA2pump https://dexscreener.com/solana/C1CfVtbnUoW9y2ZgZkynn9di4eANZwqa4TPGHa7pfFFr #INCOME#SOLANA#TESLACALLS

Daily Channels

@dailychannels · Post #6201 · 12.07.2025 г., 13:00

Channel: SIGNAL Members: ~63.75K 💢 Username: @finsignal Description: About blockchain, cryptocurrency and crypto technologies. Actual entry and exit points in the cryptocurrency market. Channel: @finsignal Bot: @finsignalbot For questions contact: @finsignaladmin Advertising and schedule: @my_signal_ad_bot 🏷 Tags: #crypto_fx_trading #cryptocurrency#nft#income#business https://telegramchannels.me/channels/finsignal

International News

@intnewsagency · Post #9373 · 25.04.2026 г., 09:34

Putin Changes Income Declaration Rules for Officials Vladimir Putin signed a law requiring officials to declare the total family income—covering themselves, their spouses, and minor children—without detailed breakdowns. Pre-marriage spousal incomes are excluded but may appear in expense declarations. The law limits oversight of transactions and assets made before appointment or marriage, excluding them from inspections and penalties. #Russia#Officials#Income#Law The main news of Russia and the world ishere.

Vet_opportunities

@vet_opportunities · Post #466 · 27.04.2026 г., 07:49

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #439 · 11.04.2026 г., 01:14

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #427 · 04.04.2026 г., 02:56

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #407 · 23.03.2026 г., 16:54

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #400 · 21.03.2026 г., 17:46

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #396 · 20.03.2026 г., 18:22

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Venture Village Wall 🦄

@venturevillagewall · Post #3436 · 19.12.2024 г., 07:00

E-commerce Conversion Crisis E-commerce stores face a critical challenge with low conversion rates from social media traffic—about half of the general average. Despite this, social networks are a major traffic source, with 64% of users making purchases through them, accounting for a third of online sales. This gap presents significant revenue losses for stores that fail to convert this traffic, highlighting a potential market for platforms aimed at boosting conversions. Read more: Fastfounder #Ecommerce#Conversion#SocialMedia#Traffic#Sales#OnlineShopping#Startup#Market#Revenue#Challenges#Users#Platforms#Retail#Growth#Insights#Business#Tech#DigitalMarketing#Shopping#Income#Reports