@doctor_ziyod · Post #901 · 14.06.2024 г., 06:37
❗️Issiq kunlarda privivka olishning xavfi! #vaccine
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
Пребарај: #vaccine
@doctor_ziyod · Post #901 · 14.06.2024 г., 06:37
❗️Issiq kunlarda privivka olishning xavfi! #vaccine
Hashtags
@reutersworldchannel · Post #149347 · 14.10.2021 г., 10:07
Australia's Victoria to end lockdown amid case surge Melbourne will exit months of COVID-19 lockdown next week helped by a faster-than-expected vaccine uptake, Victoria state Premier Daniel Andrews said, ahead of schedule even though daily infections hit a record the same day. #News#Reuters#COVID#Vaccine Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖
@reutersworldchannel · Post #149426 · 15.10.2021 г., 19:00
U.S. to lift curbs for vaccinated foreign travelers The United States will lift COVID-19 travel restrictions for fully vaccinated foreign nationals effective November 8, a move that was hailed by the country’s allies #News#Reuters#Vaccine#AirTravel#USA Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖
@Pincongessence · Post #2535 · 19.01.2022 г., 15:10
疫情期间新冠疫苗以前所未有的速度问世。纽约时报做了一篇关于mRNA疫苗的报道,作者把成功归因于三个要素: 1. 艾滋病疫苗的大规模研发 2. mRNA的发现 3. 遗传分子保存技术的突破 而这篇文章的内容,就是围绕这三个要素所展开的科学家们的故事。 Halting Progress and Happy Accidents: How mRNA Vaccines Were Made|原文 #疫情#疫苗#vaccine#science
@reachsg · Post #672 · 06.06.2021 г., 06:14
Are you considering taking Sinovac through the special access route or have concerns about it? 💉 We would like to know what you think! Head over to our 💻e-Listening Point today to make sure that your views on Sinovac are heard! https://go.gov.sg/vacc-sinovac#EveryVoiceMatter#REACHsg#Covid19#vaccine
@reutersworldchannel · Post #149323 · 13.10.2021 г., 18:19
COVID-19 shot requirements boosting vaccine rates, White House says Vaccination rates against COVID-19 in the U.S. have risen by more than 20 percentage points after multiple institutions adopted vaccine requirements, White House COVID-19 response coordinator Jeff Zients said. #vaccine#COVID#JeffZients#News#Reuters Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖
@reutersworldchannel · Post #149442 · 16.10.2021 г., 04:54
Dutch develop no-pain needle-free injections Researchers in the Netherlands are developing ‘virtually painless’ injections without needles in what they hope is a breakthrough that will ease fear and encourage vaccinations #News#Reuters#BubbleGun#NeedleFree#Vaccine Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖
@reutersworldchannel · Post #149294 · 13.10.2021 г., 08:24
American Airlines, Southwest stand by vaccine mandate Rebuffing the Texas governor, American Airlines and Southwest Airlines said they would comply with U.S. President Joe Biden's executive order to require that their employees be vaccinated for COVID-19 by a Dec. 8 deadline. #News#Reuters#Texas#Airlines#COVID#Vaccine Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖
@nido_russia · Post #1930 · 22.12.2024 г., 19:16
A Nigerian 🇳🇬 former bricklayer now turned medical doctor leads a team that developed the World’s first ever potent Cancer Vaccine in Russia 🇷🇺 Thumbs up 👍🏿 to the export from Africa's most populous Nation. Nigeria to the World! Nigeria & Russia will succeed. https://t.me/nido_russia/1930 #medicine#health#vaccine#cancer#nido#NidoRussia
@reutersworldchannel · Post #149385 · 15.10.2021 г., 01:15
FDA advisers back Moderna booster shots for some A panel of expert advisers to the U.S. FDA unanimously voted to recommend booster shots of Moderna’s COVID-19 vaccine for Americans aged 65 and older and those at high risk of severe illness or occupational exposure to the virus. #COVID19#boostershot#Moderna#vaccine#News#Reuters Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖
@reutersworldchannel · Post #149396 · 15.10.2021 г., 10:46
Biden meets Kenyan President Uhuru Kenyatta President Joe Biden told visiting Kenyan President Uhuru Kenyatta that the United States will make a one-time donation of more than 17 million doses of the Johnson & Johnson vaccine to the African Union. #News#Reuters#JoeBiden#UhuruKenyatta#COVID#vaccine Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖
@reutersworldchannel · Post #149296 · 13.10.2021 г., 10:27
FDA declines to take stance on Moderna boosters U.S. FDA researchers said Moderna's COVID-19 vaccine did not yet meet the guidelines for booster shots #News#Reuters#FDA#Moderna#Vaccine#BoosterShot Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖