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

Резултати

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

Пребарај: #bullish

当前筛选 #bullish清除筛选
Michaël Van de Poppe Official

@michaelvandepoppeanalyst · Post #4796 · 09.09.2024 г., 13:34

Binance, the world's largest cryptocurrency exchange, has achieved a major milestone in Indonesia. The company's subsidiary has successfully obtained a regulatory license from the Indonesian authorities, paving the way for expanded operations and increased legitimacy in the country. #Bullish🔥

Hashtags

Crypto Australia🇭🇲🇭🇲

@CryptoAustralia · Post #15215 · 11.01.2024 г., 06:56

#BTC, did multiple retest back to the zone and kinda have it break and retest. Price already rejecting the zone multiple times, which is sort of #bullish as of now. #ETFs also get approvals, good to see price sustaining over the zone. Well, if #Bitcoin remains silent over this, then we can see a good rally in alts soon. By Crypto Australia

SIGNAL

@finsignal · Post #3660 · 05.11.2024 г., 09:28

⚡️ Sentiment notes a decrease in the number of wallets with a non-zero balance 🪙#BTC, which may mean that some participants will enter the cache before the US elections. The experts of #Sentiment consider this development of the situation to be #bullish for #BTC after the elections are held...

🗺 Travel the World | Private Expeditions

@expeditionsworldwide · Post #128 · 07.10.2020 г., 16:05

📈Bullish Pattern - Three White Soldiers. A. How to recognise it? • There must be a preceding downtrend. • Three consecutive long green candles observed. • The second and third candle opens within the body of the preceding one but closes higher than the preceding one. B. What is the psychology behind? •The first long green candle signals that the bears are exhausted after the prolonged downtrend and the bulls start to take over. The bulls continue the rally with the subsequent two candles closing higher. C. How do we trade it? • Look for the Three White Soldiers at the bottom of a downtrend. •Wait for the fourth candle to close above the high of the third candle to confirm the reversal. • Open a long position upon confirmation. • Place a stop-loss below the low of the first green candle. #patterns #fibonacciacademy #bullish @fibonaccisyndicate.

Daily Channels

@dailychannels · Post #6237 · 27.07.2025 г., 01:00

Channel: BULLISH CRYPTO ( VIP OFFICIAL ) Members: ~2.69K 💢 Username: @officialbullishcrypto Description: At Bullish Crypto Comumnity! You can find tested strategies, powerful tools, and experienced traders to arm you with knowledge. 🏷 Tags: #crypto_fx_trading #crypto#bullish#signals#investment#money https://telegramchannels.me/channels/officialbullishcrypto

NEWS 鏈新聞-ABMedia

@abmedia_news · Post #24383 · 05.05.2026 г., 13:54

【🏦 CeFi|加密交易所 Bullish 以 42 億美元買下證券登錄商 Equiniti、組合代幣化基建】 Bullish(NYSE:BLSH)5/5 宣布以 42 億美元收購英國老牌過戶代理人 Equiniti,組合 18.5 億美元承擔債務 + 23.5 億美元股票對價。Equiniti 為 2,500+ 上市公司、2,000 萬股東提供登錄服務、年處理 5,000 億美元支付。預計 2027 年 1 月交割。 #Bullish#Equiniti#代幣化 📍閱讀全文: https://abmedia.io/bullish-acquires-equiniti-4-2-billion-tokenized-securities-transfer-agent-may-2026

DWF Labs Broadcast

@Dwflabs · Post #113 · 22.12.2022 г., 11:11

Despite the bear market, DWF Labs is choosing to double down on crypto innovations. "I think the key to #innovation in #Web3 is decentralization. Many projects that we are seeing and decided to invest into, are bringing to the table real decentralization value. We have experienced massive #tech acceleration especially during crypto winter or previous bear cycles. That is why we are so #bullish about funding the next wave of #crypto innovation. This year alone, we funded more than 50 projects." - Andrei Grachev (Managing Partner, DWF Labs) Read full interview here.

以太坊区块链新闻| ETH 以太币圈热瓜

@ethereumglobalnews · Post #1417 · 26.11.2025 г., 04:53

🪙JPMorgan: “Crypto is emerging as a tradable macro asset class #Market 📈#Bullish: 主流機構將加密視為宏觀資產=資金配置邏輯更成熟、納入正式投資框架。 交易宏觀資產(Tradable Macro Asset) 等級意味著:與股指、黃金、外匯並列,可吸引更多量化與全球宏觀基金進場。 #虚拟货币#市场观察#区块链#Macro ⚠️ 短線不代表一定上漲,但中長線是明確的結構性看多訊號。 ✅Chat: @Web3NewsInsight 🦂 👇Tip👇讚 或點擊進行💎資源搜索👇

🗺 Travel the World | Private Expeditions

@expeditionsworldwide · Post #122 · 06.10.2020 г., 15:59

📈Bullish Pattern - PIERCING A. How to recognise it? • There must be a preceding downtrend. • A red candle followed by a green candle. • The green candle opens with a gap-down and closes at 50% or above of the real body of red candle. B. What is the psychology behind? • The red candle implies the control of the bears following a prolonged downtrend. • In next session, the market opens below the low of the red candle, suggesting continuation of the bearish forces. • The bears then lose momentum, the bulls conquer and lead the price up during the session, and eventually manage to cover 50% losses or more from the previous session. C. How do we trade it? • Look for the Piercing at the bottom of a downtrend. • Wait for the next candle to close above the high of the green candle to confirm the existence of bullish force. • Open a long position upon confirmation. • Place a stop-loss below the low of the green candle. #patterns#bullish#trading#fibonacciacademy @fibonaccisyndicate

🗺 Travel the World | Private Expeditions

@expeditionsworldwide · Post #114 · 05.10.2020 г., 16:23

​​​​📈Bullish Pattern - HAMMER🔨 A. How to recognise it? • There must be a preceding downtrend • It looks like a square lollipop with a long stick. • The closing price is above or near the opening price, forming a tiny body. • The real body could be green or red. It has no or little upper shadow. • The lower shadow is at least twice of the length of the real body. B. What is the psychology behind? • Similarly to Dragonfly Doji, when the market opens, the bears continuously drag the price down during the session, resulting in a long lower shadow. • The bulls fight strongly and conquer the bears by pushing the price above or near the opening level, forming a little square body. • The longer the lower shadow, the more effective the bullish signal. It tells us that the bulls are strong enough to conquer the bears who once dragged the price so low. C. How do we trade it? • Look for the Hammer at the bottom of a downtrend. • Wait for the next candle to close above the high of the Hammer to confirm the existence of bullish force. • Open a long position upon confirmation. • Place a stop-loss below the low of the Hammer. #patterns#bullish#trading#fibonacciacademy @fibonaccisyndicate

🗺 Travel the World | Private Expeditions

@expeditionsworldwide · Post #110 · 05.10.2020 г., 00:20

📈Bullish Pattern - Dragonfly Doji A. How to recognise it? •There must be a preceding downtrend. • It looks like a T letter. • The opening, highest and closing price are same. • It has no real body but a long lower shadow. B. What is the psychology behind? • When the market opens, the bears drag the price all the way down, resulting in a long lower shadow. • The bulls fight strongly and eventually manage to push the price back up to the opening level. • The longer the lower shadow, the more effective the bullish signal. It tells us that the bulls are strong enough to conquer the bears who once dragged the price so low. C. How do we trade it? • Look for the Dragonfly Doji at the bottom of a downtrend. • Wait for the next candle to close above the high of the Dragonfly Doji to confirm the existence of bullish force. • Open a long position upon confirmation. • Place a stop-loss below the low of the Dragonfly Doji. #patterns #fibonacciacademy #bullish #trading @fibonaccisyndicate

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