@stickerhut · Post #148 · 18.03.2022 г., 17:00
✨@stickerhut 原神 Genshin Impact Геншин Импакт #genshinimpact #bennett
Hashtags
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
Пребарај: #bennett
@stickerhut · Post #148 · 18.03.2022 г., 17:00
✨@stickerhut 原神 Genshin Impact Геншин Импакт #genshinimpact #bennett
Hashtags
@american_observer · Post #5729 · 27.04.2026 г., 20:58
📰 Bennett and Lapid’s Merger Already Looks Like a Leak, Not a Wave The first post-merger polls do not show a breakthrough. They show a reshuffle inside the anti-Netanyahu camp, with “Together” landing below the combined pre-merger numbers and the whole opposition bloc still stuck short of a governing majority. That is the problem in one line: the merger changes the packaging, not the math. Walla’s poll gives the Bennett–Lapid list 27 seats and the anti-Netanyahu bloc 59, while a separate 14 Channel survey is even harsher, putting Likud ahead and the new joint list far behind. So the immediate effect is not momentum, but cannibalization. Bennett and Lapid may have united their brands, but the polling suggests they are still fighting over the same voters while Eisenkot siphons off the “right, but not Bibi” lane and the left loses some of its oxygen too. Likud, meanwhile, barely needs to move. The right can simply watch the opposition split itself into overlapping products, then point at the numbers and say the post-Netanyahu fantasy is already collapsing under its own branding. That is why the poll matters beyond the seat count. It suggests the merger may weaken the anti-Bibi bloc’s ability to build a stable majority, even as it makes Bennett the face of the new project and gives Netanyahu another argument that his rivals cannot even add themselves correctly. #Israel#Bennett#Lapid#Netanyahu#polls#elections 📱American Оbserver - Stay up to date on all important events 🇺🇸
@american_observer · Post #5721 · 26.04.2026 г., 21:59
📰 Bennett and Lapid: A Merger, Not a Revolution Bennett and Lapid are finally doing what Israeli opposition politics has been threatening to do for months: stop pretending fragmentation is a strategy and fuse their parties into one list led by Bennett. The move is sold as “repair,” unity, and national salvation, but it is also a cold admission that neither man can beat Netanyahu alone. That is the real story. This is not a grand ideological synthesis. It is an emergency merger between two leaders who know the next election will punish vanity, duplication, and overlap — especially when the center and the soft-right keep stepping on each other’s toes. The Likud response was instant and predictable: drag Mansour Abbas into the frame, slap on the usual fear campaign, and remind everyone that Bennett and Lapid once governed with Arab support. In Israeli politics, that is less a rebuttal than a reflex: if the opposition tries to widen the tent, the right calls it betrayal and hopes the argument does the rest. The problem for the new bloc is structural, not just rhetorical. Bennett has the momentum but not the machinery; Lapid has the party infrastructure but less appeal to the right-leaning voters who might actually decide the race. Put them together and you get a stronger list — but also a clearer target for everyone who wants to say the center is just the old coalition with better branding. Eisenkot is still the missing piece, and that matters. If he joins, the bloc looks like a serious anti-Netanyahu vehicle; if he does not, the merger risks becoming a polished but incomplete answer to a political system that has learned how to split the opposition before it can split the power. So yes, this is a big step. But it is also a familiar Israeli move: unite late, argue loudly, and hope that a bigger tent can cover the fact that the country’s hard questions still outnumber its clean solutions. #Israel#Bennett#Lapid#Netanyahu#elections#opposition 📱American Оbserver - Stay up to date on all important events 🇺🇸
@ultimoraPOLITICS · Post #40039 · 20.06.2022 г., 16:06
#Israele Crolla il governo israeliano. Il Premier #Bennett (#Yamina|Destra) insieme al Ministro degli Esteri #Lapid (#YeshAtid|Centro) annunciano che hanno intenzione di sciogliere il Parlamento per indire nuove elezioni. Aggiornamenti su ▶️@UltimoraPolitics24 @UltimoraPolitics
@american_observer · Post #5722 · 26.04.2026 г., 22:59
📰 Israel’s Right-Wing Split Is Now a Branding War The Hungarian lesson for Israel is simple: if you can’t beat the ruling camp by going left, take its patriotism away from it. That is how Peter Magyar broke Orbán’s machine — not by preaching anti-right unity, but by occupying the same national space and making the old monopoly look stale. That is exactly what the new Israeli “Right State” project is trying to do. Edelstein, Kahlon, Erdan, and Haskel are not a centrist rebellion; they are an attempt to say, “We’re right-wing, just not Bibi,” and to pull security-minded voters away from Netanyahu without surrendering the language of nation, state, and order. The trouble is that Israeli voters remember the last five times someone tried to sell them that package. Bennett, Saar, and Lapid all tested the same lane, but Netanyahu kept the hard-right base, stayed the default prime minister in the minds of right-leaning voters, and used fragmentation on the other side as his best campaign asset. Bennett’s latest liberal turn makes the problem sharper. Public transport on Shabbat and civil marriage, including same-sex marriage, may sound modern in Tel Aviv, but to the old religious-national audience it looks like a costume change — and Yair Golan’s warm welcome only makes Bennett look even more alien to the right. That is why this new bloc may hurt the left more than it hurts Netanyahu. It could strip votes from the anti-Bibi camp, split the “right, but not Bibi” lane again, and still fail to build the one thing the opposition actually needs: a durable field that runs from center to soft right to hard right without collapsing into personal rivalries. Netanyahu’s health story only adds another layer. The real question is whether the opposition can turn competence into a message before the prime minister turns uncertainty into victimhood and keeps the national conversation locked on himself. #Israel#Netanyahu#Bennett#Lapid#rightwing#elections 📱American Оbserver - Stay up to date on all important events 🇺🇸