#venv — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #venv, aggregated by home.social.
-
От Dependency Hell до изоляции: эволюция и внутреннее устройство виртуальных сред в Python
До 2007 года установка двух версий одной библиотеки на одном сервере была невозможной миссией. Появление virtualenv, а затем и нативного venv, изменило ландшафт Python-разработки навсегда. Но как именно работает этот механизм на уровне операционной системы и интерпретатора? Разбираем путь от копирования бинарников до современных симлинков, анализируем роль sys.path и реализуем собственный аналог venv.
-
Poetry vs Pip: Почему пора перестать использовать requirements.txt
На моем компьютере всё работало!» — фраза, после которой начинается многочасовой дебаггинг. Вы открываете requirements.txt, а там свалка: непонятные версии, транзитивные зависимости и библиотеки, которые вы вообще не ставили. Pip — отличный установщик, но ужасный менеджер проектов. В 2025 году стыдно таскать за собой «портянку» из текстовых файлов. В этой статье я покажу, как Poetry превращает ад зависимостей в скучный и предсказуемый процесс. Разберем pyproject.toml, магию lock-файла и переедем с Pip за 5 минут без боли. Внутри: туториал, гайд по миграции и честный разбор минусов (да, Poetry тоже не идеален).
https://habr.com/ru/articles/969296/
#poetry #venv #requirements #python #python3 #python_для_начинающих
-
This makes things a lot easier!
https://friendica.world/display/84b6ef2b-2068-f8c7-c061-ef4591085931
-
Fucking #venv, one of the main issues of #python venv is that it doesn't use statically linked versions of python.
"octoprint.service failed to start (...) /opt/octoprint-venv/bin/python: error while loading shared libraries: libpython3.12.so.1.0: cannot open shared object file: (...)"
Python since installing it updated to 3.13.7 on my system....
-
🚫 Copying your Python virtual environment folder? Think again.
Simply copying the venv folder might seem convenient—but it often leads to broken setups and hidden issues.
A new blog post explores why this method fails and how to migrate environments properly using reproducible workflows.
📖 Read more: https://ka2in.github.io/mydocusaurus/blog/python-venv-migration/
-
venv, you had one job!
(venv) $ python3.12 --version
Python 3.13.5
(venv) $ python --version
Python 3.13.5😱🤬
(this is after a Debian upgrade that included 3.12-3.13, but 3.12 is still installed)
How hard can it be to pin the minor version?
$ ls -al venv/bin/python*
python -> python3
python3 -> /usr/bin/python3
python3.12 -> python3 -
Your too deep in the #python universe when one of your non-tech podcasts releases a ln episode with the word “Ruff” in the title and you think “neat! astral’s ruff has more popular applications and appeal!” 👨💻🤦🏼♂️
I guess good job @charliermarsh for getting the ruff worms into my brain.
-
#OpenSUSE in AWS still has python3.6 as system python. Every time I use a python tool and ran into python3.6 and python3.9+ compatibility issues, my heart sinks a little. I know, there are solutions like #uv, #venv, #pipx, #docker, #nix etc!
With #rust you sweat (and cry) during development but with #python (and #js), you sweat (and cry) after deployment!
I'll die on the former hill rather than the later. Thank you!
-
🧱 Nuevo post en el blog:
Contenedores vs Entornos Virtuales¿Docker o venv? ¿Cuándo usar uno u otro? ¿Qué conviene para proyectos de ciencia de datos o enseñanza?
📖 Acá lo cuento:
https://juncotic.com/contenedores-vs-entornos-virtuales-cual-usar-y-cuando/ -
[Перевод] Год с uv — инструментом управления Python-проектами: плюсы, минусы и стоит ли переходить
uv — это новый инструмент управления Python-проектами, разработанный командой Astral. За год активного использования автор протестировал его в разных условиях: от учебных задач до сложных production-проектов. В статье — честный разбор сильных и слабых сторон uv, его отличий от других менеджеров окружений, реальных ограничений и сценариев, где он работает особенно хорошо.
https://habr.com/ru/companies/otus/articles/903578/
#dependency_management #uv #python #управление_пакетами #package_manager #pip #venv
-
Python для начинающих дата-аналитиков: как настроить виртуальное окружение?
Привет! Меня зовут Женя и я работаю аналитиком данных. В этой статье я бы хотел рассказать начинающим аналитикам о том, как правильно настроить окружение для работы с Python. Когда я только начинал заниматься анализом данных, концепция питоновского виртуального окружения вводила меня в ступор, и здесь я постараюсь показать, что в ней нет ничего сложного.
https://habr.com/ru/articles/889670/
#venv #pip #data_analysis #uv #pandas #jupyter_notebook #python
-
good grief, we broke our #ai #alttext script. for a while we were running the latest #pixtral #vision #model however we wanted to try #Microsoft #PHi4 #vision model however we use #conda for our python virtualization management.
this is a huge mistake #lol #tech #aidev #thestruggle
i need a #venv for both pixtral and phi4 in one scripts run time.
suggestions anyone to work this mess?
obviously we are running with the phi4v model however we were testing across all the accounts when we realized we broke the production scripts.
same login, supposedly different virtual environments.
blah. perhaps this is what #uv is meant to fix?
Not really sure, I guess I could talk to #ChatGPT about it lol
-
Hey #Fedi, can you help me with a #Python environment pain-point?
TL;DR : I want global #virtualenv management
I've been using virtual environments for quite some time, but I might be missing some standard feature because switching env is a pain: I have to be in the right folder (where the venv dir was created) or manually configure a shell script.
Is there a tool that can provide me with the equivalent of ``envswitch envname`` regardless of the folder I'm in? -
Stepping my feet into uv world - part 1 https://www.andreagrandi.it/posts/stepping-my-feet-into-uv-world-part-1/
#Python #development #uv #rust #venv #programming #tutorial #howto
-
[Перевод] Стоит ли использовать Python venv в контейнере, таком как Docker? Определённо
Стоит ли использовать Python venv в контейнерах, таких как Docker? На первый взгляд может показаться, что это лишний шаг, ведь контейнер уже обеспечивает изоляцию. Но что, если отказ от venv обернётся неожиданными конфликтами, сложностью поддержки и скрытыми рисками для вашего проекта? Из этой статьи узнаем, почему даже в контейнеризированной среде venv остаётся важным инструментом для обеспечения стабильности и однородности разработки.
-
After programming a good 2 months in #python finally found the tool #poetry which is quite similar to how #nodejs bundles libraries into a directory either locally or globally in the cache directory.
I have tried the other tools from #pyenv to #venv and/or #virtualenv. Where I thought they were used to deal with library dependency management only to realize that they are more like #nvm.
I did use #conda for some time, though preferred a python only solution. I do realize that poetry won't resolve all issues and might need to look into to containerization later on, though for the time period it looks like a good solution.
-
Key Points:
➡️ Using a Python venv in a Docker container ensures homogeneity and reduces complexity.
➡️ It prevents conflicts between system libs and project deps.
➡️ Even minimal images benefit from venvs due to the ever-changing ecosystem.
➡️ Venvs are cheap and offer a high ROI.
➡️ They help maintain a consistent dev environment.https://www.bitecode.dev/p/yes-you-should-use-a-python-venv
#Python #Docker #VirtualEnvironment #DevOps #SoftwareDevelopment #Programming #venv
-
I leave an info here that has taken me a while to find out about the use of python environments in #VSCode (Codium)
In case you have a #python #venv already created in a certain path and you want to use it in VS just go to settings, search for venv and indicate the path of the folder.
After doing this you will be able to select the python interpreter of the added venv.
In the image you can see the example I solved with the path to the jupyterlab-desktop venv in #VSCodium
-
Инфраструктура для Data-Engineer виртуальные окружения
В современной Python-разработке управление зависимостями и изоляция проектов являются критически важными аспектами. Независимо от того, работаете ли вы над небольшим скриптом или крупным проектом, правильная организация окружений поможет избежать конфликтов между пакетами и обеспечит воспроизводимость вашего кода.
https://habr.com/ru/articles/861412/
#виртуальные_окружения #data_engineering #data_engineer #разработка_на_python #python_разработка #работа_с_виртуальными_окружениями #poetry #venv #uv #conda
-
Why is Python special in this regard? Many applications, whether written in Python, Perl, Ruby, or C etc, embed a particular version of a library because they either can't rely on it being available system-wide, or because they can't rely on the system-provided one being completely #compatible with their needs.
I find virtual environments an elegant solution to the problem, better than many other languages' solutions.
-
I am just about fed up with #poetry (for #Python development).
When it works, it's great. But when it doesn't do what you expect, it seems to be virtually impossible to determine why, and the #documentation barely scratches the surface, basically only showing the happy path.
An example that has bugged me for ages: #entrypoints set up with the [tool.poetry.scripts] configuration in pyproject.toml are sometimes silently ignored. `poetry install` doesn't set them up in the #venv.
1/x
-
@archiloque Mind you, I had the exact same feeling while trying to install #woob on #ubuntu. I failed in a trap lying between #venv and #virtualenv
-
I guess I'll learn how to use #virtualenv and use Python 3.9? (or should I use #pyenv? #pyvenv? #venv? #virtualenvwrapper? #pipenv? Why are there so many of these things??)