@trumpsear_tg · Post #2202 · 27.02.2026 г., 15:04
New York Mayor Zahran Mamdani unexpectedly arrived at the White House for a meeting with Donald Trump #Trump#Mamdani 👂More on Trump's Ear ⚠️
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
Пребарај: #mamdani
@trumpsear_tg · Post #2202 · 27.02.2026 г., 15:04
New York Mayor Zahran Mamdani unexpectedly arrived at the White House for a meeting with Donald Trump #Trump#Mamdani 👂More on Trump's Ear ⚠️
@trumpsear_tg · Post #1829 · 26.11.2025 г., 00:04
Really the spitting image of Mamdani #Trump#Mamdani 👂More on Trump's Ear
@trumpsear_tg · Post #1825 · 25.11.2025 г., 18:01
Trump loves handsome and confident men very much. For example, Bill Clinton. No wonder Mamdani kept his hands in one place throughout the meeting. #Trump#Mamdani 👂More on Trump's Ear
@trumpsear_tg · Post #2037 · 21.01.2026 г., 19:59
Fox News is outraged that the new socialist mayor of New York, Zohran Mamdani, installed a bidet in his residence. The article did not specify which specific bidet was installed in the mayor's residence, but kindly noted that it could cost from 40 to 2000 dollars. #Mamdani#Media 👂More on Trump's Ear ⚠️
@trumpsear_tg · Post #1748 · 07.11.2025 г., 00:00
Media about Mamdani's victory #Media#Mamdani 👂More on Trump's Ear
@trumpsear_tg · Post #1808 · 21.11.2025 г., 01:00
This person is part of President Trump's inner circle and influences his decision-making. Loomer quickly corrected the tweet when it was explained to her that the whole world uses Arabic numerals anyway. #Mamdani#GOP 👂More on Trump's Ear
@trumpsear_tg · Post #1891 · 10.12.2025 г., 19:05
The warnings were stark. If Zohran Mamdani were to win the New York City mayoral election, his plans to raise taxes – slightly – on the city’s wealthiest residents would cause millionaires to bolt en masse, decamping to lower-tax states such as Florida and Texas. #NY#Mamdani 👂More on Trump's Ear
@trumpsear_tg · Post #1769 · 12.11.2025 г., 15:05
Hochul opposed free buses, but is ready to support Mamdani's other ideas. New York Governor Kathy Hochul refused to support the idea of the new mayor of the city, Zohran Mamdani, to make bus travel free. At the Somos Puerto Rico conference in San Juan, she said she was not ready to "take money out of a system that survives by paying for travel." According to her, assistance can be sent to those who are unable to pay, but the payment cannot be completely canceled, writes abc7NY. Hochul says that canceling the payment will hit the MTA's budget and the stability of transportation. And Transport Minister Sean Duffy wrote on social media that "nothing is free" and called Mamdani's idea utopian. The mayor himself considers the victory a "mandate for change" and promised to fulfill all his election promises, including free buses. In addition, Mamdani wants to expand access to kindergartens. According to Hochul, the program will require about $15 billion, but she is ready to support it. #NY#Mamdani 👂More on Trump's Ear
@trumpsear_tg · Post #1743 · 06.11.2025 г., 14:12
🔥Mamdani presented his plan for the transformation of the city The new mayor of New York Zohran Mamdani promised to turn the metropolis into a "city accessible to all" 🗺 and has already presented the first points of his program. His plan involves large-scale social reforms, which critics call utopian, and supporters - a chance for a new era for New York. One of Mamdani's main initiatives is free public transport. 🚎 He wants to make all bus routes within the city free and expand the network of dedicated lanes. In addition, the mayor intends to introduce free kindergartens for families with children under five years of age and open city grocery stores with a minimum margin. 🛒 Economists warn that similar experiments in the United States have already failed: for example, in Kansas City, such stores have closed due to losses and thefts. Mamdani pays special attention to housing: he promised to freeze the growth of rental rates 🏠 and build a new "affordable" housing stock. The mayor plans to pay for all this by increasing taxes for the rich and large companies — by 2 percentage points for millionaires and up to 11.5% for businesses. 📊 Experts warn that such measures can scare off investors and lead to companies fleeing the city. In the field of security, Mamdani wants to reduce the role of the police ⚡️ and transfer some of its functions to social services. It will not be easy for the new mayor to implement an ambitious program, since for tax changes he needs the consent of the governor of the state, Kathy Hochul, who has already stated that she does not intend to raise taxes. #NY#Mamdani 👂More on Trump's Ear
@trumpsear_tg · Post #1731 · 04.11.2025 г., 14:01
Once upon a Time in New York #NY#Mamdani 👂More on Trump's Ear ⚠️
@trumpsear_tg · Post #1729 · 03.11.2025 г., 21:59
Jeremy Corbyn supports Mamdani #NY#Mamdani 👂More on Trump's Ear ⚠️
@savinobalzano · Post #1203 · 05.11.2025 г., 11:55
https://x.com/SavinoBalzano/status/1986039391706353723?t=gAy-_lGAvfSxEYApv8mr-w&s=19 Desidero esprimere le mie congratulazioni alla sinistra italiana. Mi inchino dinanzi a tutti i sinistri d'Italia, a tutti i profili con la bandierina arcobaleno e l'emoticon del pugno chiuso. Desidero altresì congratularmi con tutti i nostri ecologisti: oggi ho letto messaggi di esultanza, assolutamente comprensibile, per il trionfo degli autobus elettrici. Socialismo ecosostenibile, nuove parole d'ordine. Insomma, rivolgo tutte le mie felicitazioni alla sinistrucola italiana per l'elezione di Zohran #Mamdani a sindaco di #NewYork. Traguardo davvero epocale, ma nessun indugio, mi raccomando: mai crogiolarsi sugli allori. Schlein, Fratoianni e Bonelli guardano già a Miami.