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

Резултати

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

Пребарај: #cryptosignal

当前筛选 #cryptosignal清除筛选
Propheta Indicator Signals

@propheta_indicator · Post #23564 · 26.03.2026 г., 05:47

Reached 9th TP in the VIP PRO channel! Every day we're on fire! 🔥🔥🔥ACCESS TO MANUAL TRADING for 70usdt/month 👉 Not sure? Considering? Contemplating? Come have a look at our performance reports, spend about5 minutes and see for yourself that everything is 100% legit! @propheta_reports Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #CryptoSignal#tradingview#cryptobot

Propheta Indicator Signals

@propheta_indicator · Post #23350 · 18.02.2026 г., 18:14

Reached 9th TP in just 4 hours in the VIP HTL channel! $204 in profits with a 5% entry and a $1000 deposit! ACCESS TO MANUAL TRADING for 70usdt/month 👉 Did you know that many traders use our performance reports to build their own trading strategy? That's how useful they are! Check them out: @propheta_reports Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #CryptoSignal#btc#cryptonews

Propheta Indicator Signals

@propheta_indicator · Post #22922 · 17.10.2025 г., 07:16

Now that's trading 👆🔥🔥🔥 Reached 9th TP in the VIP HTL channel! Using a 5% entry you could've earned $205 with a $1000 deposit 🤑 All this profit could have been yours! 🔥ACCESS TO MANUAL TRADING for 70usdt/month 👉 Looking at those reports and can't believe what you're seing? Go to our reports channel and audit us! @propheta_reports Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #CryptoSignal#AItrade#tradingviewindicator

Propheta Indicator Signals

@propheta_indicator · Post #23716 · 16.04.2026 г., 02:41

Now that's trading 👆🔥🔥🔥 Reached 9th TP in the VIP PRO channel! Easy $100 with a 5% entry and a $1000 deposit! VIPs getting filthy rich by the day ☺️🤑🤑ACCESS TO MANUAL TRADING for 70usdt/month 👉 Looking at those reports and can't believe what you're seing? Go to our reports channel and audit us! @propheta_reports Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #AItrader#passiveincome#CryptoSignal

Propheta Indicator Signals

@propheta_indicator · Post #23059 · 14.11.2025 г., 13:57

👍 This is why we're here! Reached 9th TP in the VIP HTL channel! With a 5% entry and a $1000 deposit, you could've earned $308! Feels good to be a Propheta VIP, man... 🏖ACCESS TO MANUAL TRADING for 70usdt/month 👉 How to earn every month with zero risk? Become Propheta partner with zero investment required! Click the link, then START >>> Referral Program Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #CryptoSignal#cryptotrading#tradingview

Propheta Indicator Signals

@propheta_indicator · Post #23577 · 27.03.2026 г., 01:57

👆 OMG! Would you look at that 👀 Reached 9th TP in just 9 hours in the VIP PRO channel! Using a 5% entry you could've earned $401 with a $1000 deposit Feels good to be a Propheta VIP, man... 🏖ACCESS TO MANUAL TRADING for 70usdt/month 👉 Join us and earn big! Start here: t.me/ProphetaAdmin_bot Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #AItrading#CryptoSignal#tradingbot

Propheta Indicator Signals

@propheta_indicator · Post #23084 · 21.11.2025 г., 07:36

Reached 9th TP in just 1 day in the VIP PRO channel! Using a 5% entry you could've earned $458 with a $1000 deposit ACCESS TO MANUAL TRADING for 70usdt/month 👉 Did you know that many traders use our performance reports to build their own trading strategy? That's how useful they are! Check them out: @propheta_reports Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #bitcoinnews#CryptoSignal#bitcoin

Propheta Indicator Signals

@propheta_indicator · Post #23554 · 24.03.2026 г., 08:14

👆 Propheta living up to its name yet again 🔮 Reached 9th TP in just 20 hours in the VIP PRO channel! Every day we're on fire! 🔥🔥🔥ACCESS TO MANUAL TRADING for 70usdt/month 👉 Join us and earn big! Start here: t.me/ProphetaAdmin_bot Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #CryptoSignal#signalchannel#signals

Binance Big Pump Signals Future trade

@binancebigpumpsignalsfuture · Post #2676 · 05.05.2025 г., 06:03

It might look a little confusing at first, but pay attention. On this chart we have DXY, GOLD and BTC. DXY, which is a representative chart of the USD, has an inverse relationship with GOLD and BTC. This is because when the dollar is strong, big money moves into high interest bonds that are safe. When the dollar weakens, big money moves into safe havens and riskier assets. What we can firstly see on the chart is that every time DXY drops, GOLD almost instantly moves higher. Secondly, we can see that BTC also moves higher, but it lags behind GOLD. But that’s not the most interesting thing… The most interesting thing here is that every single time DXY has entered a down trend, BTC has began its move between 133 days and 140 days later. This time, that gives us an end of May date as to when BTC will begin its next true move higher. It’s just facts, right there for you to see. #CryptoSignal#Binance#PumpAlert#FuturesTrade

Propheta Indicator Signals

@propheta_indicator · Post #22870 · 07.10.2025 г., 17:42

👆 Propheta living up to its name yet again 🔮 Reached 9th TP in just 20 hours in the VIP PRO channel! You could've earned $402 with a 5% entry and a $1000 deposit! 🤑 All this profit could have been yours! 🔥ACCESS TO MANUAL TRADING for 70usdt/month 🏆Flex your skills with Propheta AI Analyzer: smart AI analysis flips the market upside down, fast tweaks fit any style, and it’s your wingman for snagging top-tier trades! GET THE ACCESS Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #CryptoSignal#bitcoinnews#cryptoexchange

Daily Channels

@dailychannels · Post #6471 · 09.11.2025 г., 01:00

Channel: Crypto Signals & Automated Trading Bot Members: ~4K 💢 Username: @cryptosignalalert Description: Founded in 2017 - We provide high quality ALT COIN, Spot & Margin Signals, BTC Signals No of Trial/Free Signals Sent - 290 Success Ratio Of Trial/Free Signals - 100% We do provide Crypto Bot for Automated Trades Contact - @cripexperts for Premium Group 🏷 Tags: #crypto_fx_trading #cryptosignal#automatedtrading#cryptobot#bitcoinbot https://telegramchannels.me/channels/cryptosignalalert

Propheta Indicator Signals

@propheta_indicator · Post #23008 · 04.11.2025 г., 20:18

Oops, we did it again 🤣 Reached 9th TP in 1 day on our #ENAUSDT trade! 🔥🔥🔥 Using a 5% entry you could've earned $462 with a $1000 deposit ACCESS TO MANUAL TRADING for 70usdt/month 👉 It's time to get a moneyprinter of your own! Get access: t.me/ProphetaAdmin_bot Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #cryptochannel#btc#CryptoSignal

ПретходнаСтраница 1 од 5Следна