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

Резултати

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

Пребарај: #therapeutics

当前筛选 #therapeutics清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #3521 · 20.12.2024 г., 09:30

BiPER Therapeutics Raises $839K BiPER Therapeutics has announced a funding round of $839.12K set for December 17, 2024. Founded in 2021, this biotech company is focused on developing first-in-class therapeutics for cancer treatment. #Biotech#Funding#Cancer#Therapeutics#Startup#Investment#BiPERTherapeutics

Venture Village Wall 🦄

@venturevillagewall · Post #3840 · 10.01.2025 г., 16:00

Big Funding Rounds for Innovative Startups Multiple startups have closed significant funding rounds in early January 2025: - Fourier Intelligence: $109.16M - CCR SPVias: $105.16M - Wellpointe: $87.15M - Combines healthcare and real estate for assisted living. - A2 Biotherapeutics: $80M - Focuses on cancer treatment via cell therapy. - Alesta Therapeutics: $67.30M - Develops small molecule therapies for rare diseases. - Coave Therapeutics: $33.02M - Works on gene therapies for ocular and CNS diseases. - Zeto: $31M - Offers wireless EEG headsets for remote monitoring. - Qualified Health: $30M - AI governance in healthcare. - Gridware: $26.50M - Technology for an efficient electric grid. - Copper Mountain Energy: $20M. #Funding#Healthcare#Cancer#Biotech#Therapeutics#RealEstate#AI#HealthcareAI#ElectricGrid#CNS

Venture Village Wall 🦄

@venturevillagewall · Post #3627 · 21.12.2024 г., 10:22

First Oral Diabetes Therapy Funded TIXiMED has raised $2.65 million to develop TXNIP inhibiting medication, targeting Type 1 and Type 2 Diabetes with an innovative oral therapeutic. Learn more about their project here. #TIXiMED#Diabetes#Funding#Healthcare#TXNIP#Therapeutics#Type1Diabetes#Type2Diabetes#Biotechnology

Venture Village Wall 🦄

@venturevillagewall · Post #3623 · 21.12.2024 г., 10:22

Marama Labs Secures $2.08M Marama Labs has raised $2.08M as of December 19, 2024, to advance its CloudSpec™ technology, which quickly quantifies therapeutic content in nano-formulations, including RNA in LNPs, utilizing an innovative fluorescence-free approach. #MaramaLabs#Funding#CloudSpec#RNA#LNPs#Therapeutics#Biotech#Nanoformulations#FluorescenceFreeTechnology

Venture Village Wall 🦄

@venturevillagewall · Post #3960 · 23.01.2025 г., 13:00

Funding Update: $27.55M for Arctic Therapeutics Top funding rounds include: - Arctic Therapeutics: $27.55M, focusing on genetic disease treatment. - ProtoPie: $21M, for interactive prototypes across devices. - Evernest: $15M, enhancing safety in rental markets. - Qomodo: $14.06M, BNPL platform for secure transactions. - Bedrock Energy: $12M, key energy solutions. - MOV: $9.60M, supporting Japan's market revival. - Fudo Security: $9.38M, infrastructure security strategies. - XILO: $7.20M, streamlining insurance quoting processes. - Axoflow: $7M, data curation for hybrid enterprises. - Kaya Pay: $5.30M, AI platform for construction management. Stay tuned for more updates! #Funding#Startups#Therapeutics#Prototyping#Rentals#BNPL#Energy#CyberSecurity#Insurance#DataManagement#Construction#AI#VC#Crypto

Venture Village Wall 🦄

@venturevillagewall · Post #3712 · 25.12.2024 г., 13:00

Funding Rounds Highlighted Major funding rounds recently announced include: - StarPlus Energy: $7.54B for EV battery plant development. - Yondr: $900M focused on hyperscale data centers. - TymeBank: $250M investment secured. - Cursor: $100M for an AI code editor. - Luma AI: $90M committed to visual AI innovation. - Al-Zahi Group: $83.24M for architecture and design services in Dubai. - GEMMABio: $34M to enhance access to advanced therapies for rare diseases. - Myriota: $31.15M for satellite connectivity in IoT. - EPTME: $30M for future lifestyle management. - Chengdu Tuomei Shuangdu: $27.49M investment. - Infinant: $15M for banking platform development. - Zero Gravity Aircraft Industry: $13.77M raised. - Scientic: $13.74M secured. - Zhongna Energy: $13.73M round completed. - Avalon Finance: $10M for blockchain-based lending. - Bluenote Health: $10M to enhance life sciences innovations. - HazelTree: $9.96M for treasury solutions. - Mindgard: $8M for AI security solutions. - Rujira: $7M raised for DeFi tools integration. - Dolphin Drying: $6.85M to advance drying machine technology. #Funding#EV#Battery#DataCenters#AI#Healthcare#Therapeutics#Finance#DeFi#IoT#Architecture#Design#Security#Innovation#Technology#Satellite#Blockchain#Lending#Liquidity#Energy#Media

Venture Village Wall 🦄

@venturevillagewall · Post #3415 · 18.12.2024 г., 12:11

Turn Therapeutics Secures $75M Funding Turn Therapeutics, specializing in advanced wound and dermatologic care, has raised $75 million in funding. The investment aims to boost their innovative pharmaceutical and medical device offerings using proprietary technology. For more details, visit their website: Turn Therapeutics. #Funding#Biotech#Healthcare#Pharmaceuticals#MedicalDevices#WoundCare#Dermatology#Investment#Innovation#Technology#TurnTherapeutics#Proprietary#AdvancedCare#Medical#Company#Therapeutics#Research#Development#Startups

Venture Village Wall 🦄

@venturevillagewall · Post #3629 · 21.12.2024 г., 10:22

$4.07M Funding for PeptiSystems PeptiSystems secured $4.07M in funding on December 20, 2024. The company develops advanced instruments for solid-phase synthesis in peptide and oligonucleotide therapeutics, catering to both GMP and non-GMP manufacturing. Discover more: PeptiSystems #Funding#PeptiSystems#Therapeutics#Peptides#Oligonucleotides#GMP#Manufacturing#Synthesis#Biotechnology#Pharmaceuticals#MedicalDevices#FlowthroughColumnTechnology#ProcessDevelopment#LifeSciences

Venture Village Wall 🦄

@venturevillagewall · Post #3665 · 21.12.2024 г., 11:00

Funding News: December 2024 🚀 Major funding rounds announced: - Alvie: $2.19M for HUGO digital assistant - Buildpeer: $2.50M for construction project optimization - Island Passage: $2.50M in funding - TIXiMED: $2.65M for diabetes treatment - The Pad Climbing: $3M for climbing community project - PeptiSystems: $4.07M for peptide and oligonucleotide therapeutics - Greenlight Health: $4.20M for data solutions - TripSuite: $5M for agency growth tools - DuckChain: $5M for blockchain solutions - Nexa Finance: $5.04M for investment opportunities - Tenor: $5.40M for management training with AI - Smartr365: $6.33M for mortgage brokerage platform - Astraveus: $7.40M for cell therapies - EditPep: $8.20M in funding - Jrnys: $8.65M for personalized healthcare solutions - Hoji: $8.94M for ecological solutions - Hauler Hero: $10M for waste management software - Trinity College, Dublin: $10.46M in funding - PeproMene Bio: $11M for cancer therapies - Hervolution Therapeutics: $11.70M for immunotherapies For more details, visit the respective websites. #Funding#Healthcare#Biotech#AI#Construction#Therapeutics#WasteManagement#Investment#DigitalAssistant#CellTherapies#EcoDesign#Mortgage#Finance#Diabetes#Peptides#Community#Climbing#Software#PersonalizedHealthcare#Blockchain

Venture Village Wall 🦄

@venturevillagewall · Post #3412 · 18.12.2024 г., 12:11

$60M Funding for Psioxus Psioxus Therapeutics has successfully secured $60M in funding as part of its latest round, scheduled for December 17, 2024. This funding aims to advance its innovative tumor gene therapy platform focused on improving cancer treatment outcomes. #Funding#Cancer#Biotech#Oncology#GeneTherapy#Therapeutics#ClinicalStage#Investment#Healthcare#Psioxus#AkamisBio#Tumor#LifeScience#MedicalResearch#Therapy#Innovative#Impact#Technology#Platform