@danielmkovalik · Post #2636 · 22.07.2025 г., 19:29
Please do understand that none of this would be happening if the heroic Union of Soviet Socialist Republics still stood. #USSR.
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
Пребарај: #ussr
@danielmkovalik · Post #2636 · 22.07.2025 г., 19:29
Please do understand that none of this would be happening if the heroic Union of Soviet Socialist Republics still stood. #USSR.
Hashtags
@danielmkovalik · Post #2187 · 11.04.2025 г., 13:33
Every day I’m reminded how the world is much the worse because of the collapse of the #USSR. Here are several reasons why:
Hashtags
@rtdocumentary · Post #512 · 15.03.2022 г., 10:02
#video#USSR For 872 days, Leningrad was cut off from the outside world. Nazi forces encircled the city, launching the deadliest and longest blockade in history. Within the first few weeks, food supplies were depleted, leading to extreme famine. Glue, cellulose, shoe soles - anything consumable was used as food. About 1.1 million people died during the siege, most of them starved to death. Lidia Sudina and Dmitry Buchkin witnessed air raids, bombardment, and starvation as children. Hear their recollection of the ordeal in our documentary, Leningrad Siege Reflections. Follow: https://t.me/rtdocumentary
@rtdocumentary · Post #440 · 06.02.2022 г., 10:00
The Dyatlov Pass incident is still unsolved #video#USSR On February 1-2, 1959, a group of Soviet hikers died mysteriously in the remote Ural mountains. Their frozen bodies were found scattered hundreds of metres away from their tents. Undressed, their bodies had broken ribs, fractured skulls, burns and scratches. An investigation concluded the group led by Igor Dyatlov was killed by an ‘overwhelming force’, driving some incredible theories. In 2020, the Prosecutor’s Office said an avalanche led to the deaths. Still, many remain sceptical. Check out this video for more details about one of the greatest mysteries of the 20th century. Follow: https://t.me/rtdocumentary
@rtdocumentary · Post #368 · 25.12.2021 г., 10:05
#video#USSR Thirty years ago, Mikhail Gorbachev announced his resignation as Soviet president on state TV. The Soviet flag was lowered for the last time at the Kremlin, and the USSR was no more. In the 1980s, Mikhail Gorbachev launched his flagship policies of Perestroika and Glasnost to transform the country and pull it out of stagnation. Instead, it only worsened the shortages and unleashed a wave of criticism. Gorbachev is widely revered in the West but is often criticised at home for ending the Soviet Union. You can learn more about the dramatic events that unfolded in 1991 before Gorbachev’s resignation speech in our documentary here. Follow: https://t.me/rtdocumentary
@Aetatesolis · Post #4486 · 04.07.2025 г., 16:37
List of bands that were banned from the USSR in 1985 Surprised to not see Metallica on the list. If you have a chance, watch their 1991 performance in Moscow on Youtube (Here). Coming just after the fall of the Soviet Union, the concert drew a crowd estimated between 500,000 and 1.6 million people. With Soviet soldiers standing guard, the crowds of young Russians headbanged to "Enter Sandman" as helicopters fly back and forth from above. Legend has it that people are still leaving the concert... #metal #ussr AETATESOLIS
@semasci · Post #1148 · 25.05.2025 г., 10:34
Взгляд из 1975 в 2025 #СССР#USSR
@learnRCRussian · Post #6136 · 03.02.2026 г., 11:22
Why Children Were Put to Sleep Outside in Winter and Summer. ❄️This practice was widespread in the USSR. Children were put to sleep outdoors, both in winter and summer. ❄️This practice had two main reasons. The first was the perceived benefit. It was believed that sleeping in the open air would help strengthen the immune system, and children would get sick less often. ❄️The second reason was that this тихий час (quiet hour) made the caregivers' work easier, as children fell asleep faster and more soundly in the fresh air, requiring less calming down. ❄️Even in winter, babies slept in the fresh air if the temperature did not drop below -10°C. And some kindergartens, due to the lack of a quiet area near the building, created sleeping spaces right on the roof. ❄️To keep the children warm, special sleeping bags made from sheepskin were sewn for them. In these, the little ones never got cold and slept soundly. ❄️However, parents later had a hard time because at home, the child couldn't fall asleep properly due to the lack of fresh air. So, they had to open all the windows in the house, even if the weather was bad. ❄️It was also believed that such sleep, especially in winter, was an excellent prevention against tuberculosis, which was a very serious problem at the time. Source: Pikabu #brief_and_interesting #USSR 🟠RCR | Support | Boost
Hashtags
@learnRCRussian · Post #5269 · 14.08.2025 г., 14:00
On August 14, 1937, the practice of issuing sick leave certificates was introduced in the USSR, granting the right to partial wage payment if a person was ill and unable to work for a certain period. 🔻The Council of People's Commissars approved the procedure for issuing sick leave certificates, which had been developed by the All-Union Central Council of Trade Unions and the People's Commissariat of Health of the USSR. 🔻The sick leave form itself, also approved in 1937, remained unchanged for a full 57 years. It was only in 2005 that the Ministry of Healthcare and Social Development of the Russian Federation approved its new form – the document changed from bluish to light green, and new security features were added to it. #brief_and_interesting #USSR 😎RCR | Support | Boost
Hashtags
@ikskey · Post #67 · 10.12.2023 г., 18:26
#ussr-chan #es
@learnrcrussian · Post #4024 · 14.01.2025 г., 13:00
Manual how to deal with tough Russians #just_a_joke #USSR 😎RCRussian | Support | Boost
Hashtags
@learnrcrussian · Post #4615 · 01.05.2025 г., 14:00
Did you know that in the USSR there used to be a female newly-invented name 'Даздраперма'? • Даздраперма [da-zdra-per-ma] 🔻It came from a Soviet slogan: • ДА ЗДРАвствует ПЕРвое МАя! Long life the first of May! Photo: 1 May, 1968, Lvov, USSR, Ilya Pavlyuk #USSR #holidays 😎RCRussian | Support | Boost