home.social

#venv — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #venv, aggregated by home.social.

fetched live
  1. Alternatively, is there a way to `--system-site-packages` an existing venv rather do it at creation time? This way I could apply this on the venv that `uv tool` creates.

    #Python #uv #venv

  2. RE: fosstodon.org/@ThePSF/11748003

    On macOS, Mole can clear out your .venv and venv dirs, in case you have old certifi.

    github.com/tw93/mole#purge

    $ brew install mole
    $ mo purge --dry-run # review first
    $ mo purge # interactive
    $ mo purge --yes # non-interactive
    ...
    Estimated space freed: 13.33GB | Items: 399

    You may need to point to your dev dir with --paths

    It also cleans out things like .tox, .nox, __pycache__, .pytest_cache, .mypy_cache, .ruff_cache build, dist, node_modules.

    #Python #Mole #venv #certifi #eMudhra #macOS

  3. CW: python/debian rant

    "If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed."

    And please, here are 3 hoops, jump through and don't forget to sacrifice your first born.

    Sorry, but 🤮 .

    #python #venv

  4. Gestern für eine #Fehleranalyse das erste Mal ausführlicher eine online #KI verwendet. Bisher hatte ich nur lokal auf meinem #framework13 mit #qwen herum gegurkt 🙂.

    Bin gut mit der kostenlosen Version von #chatgpt ausgekommen. Musste nur 3x eine neue Sitzung anfangen, weil ich das Limit erreicht hatte.

    Schön fand ich, dass die Analyse Schritte gut erklärt wurden, warum man welchen Befehl im Terminal eingeben soll.

    Habe dabei die Verwendung von #uv als Umgebungsmanagement verstehen gelernt. Habe bis jetzt #Python #venv direkt verwendet. Mit uv erspareich Kir das Aktivieren, schon praktisch.

    Als Unterstützung lerne ich jetzt KI immer mehr zu lieben. Aber komplett auf die KI zu verlassen wäre nur fahrlässig und dumm.

  5. quicktipp #117: Bootstrapping a portable Python bundle on MS Windows using the `pywinbundle` tool.

    github.com/christian-korneck/p

    A bundle is a bit like a venv, but self-contained and can get moved/renamed to any path or copied to any Windows machine. The bundle will continue to work, even if there is no existing Python installation.

    #python #windows #pip #venv #virtualenv #uv #jupyter #pypi

  6. #TIL that python-venvs are not portable.

    #python #venv

  7. Хватит засовывать всё в контейнеры: возвращаем комфорт в локальную разработку

    Всем привет! Сегодня хочу поделиться своим подходом к локальной разработке backend‑приложений. Речь пойдёт о том, как вернуться к использованию виртуальных окружений, отказавшись от контейнеризации там, где она начинает мешать, а не помогать. Каждый разработчик давно знает обо всех преимуществах Docker: мы привыкли воспринимать его как универсальный ответ на любые вопросы инфраструктуры. Некогда революционная парадигма разработки стала чем‑то обыденным и сегодня часто принимается как no‑brainer решение при разработке очередного проекта на локальной машине. Но давайте на минуту остановимся и зададимся вопросом: всегда ли эта избыточная изоляция оправдана? Действительно ли мы нуждаемся в «мини‑сервере» на каждом этапе написания кода, или мы просто следуем моде, жертвуя скоростью и комфортом. Вступить на путь самурай

    habr.com/ru/companies/domclick

    #docker #python #venv #poetry #uv #pip

  8. От Dependency Hell до изоляции: эволюция и внутреннее устройство виртуальных сред в Python

    До 2007 года установка двух версий одной библиотеки на одном сервере была невозможной миссией. Появление virtualenv, а затем и нативного venv, изменило ландшафт Python-разработки навсегда. Но как именно работает этот механизм на уровне операционной системы и интерпретатора? Разбираем путь от копирования бинарников до современных симлинков, анализируем роль sys.path и реализуем собственный аналог venv.

    habr.com/ru/articles/1013512/

    #python #virtualenv #poetry #pip #venv

  9. From the responses it looks like #uv is the winner for replacement from venv. I don’t even need to change up the requirements.txt file I already have been outputting.
    #python #poetry #venv

  10. I take it all the cool kids are using #uv nowadays for their #python projects? Or is #poetry the way to go?

    I’ve been doing #venv forever and wondering if I’m missing out on something.

  11. Damn how easy have made it for managing :python: projects.

    This was the first time I used it to upgrade the and I just stared at the screen for like 10 seconds completely dumbfounded 🤪

  12. I would use #python a LOT more if it wasn't for that 🐂 💩 #venv requirements

    While it was a global improvement when you retired 2.7, you're only halfway done

    Deprecate this venv crap, please

  13. Poetry vs Pip: Почему пора перестать использовать requirements.txt

    На моем компьютере всё работало!» — фраза, после которой начинается многочасовой дебаггинг. Вы открываете requirements.txt, а там свалка: непонятные версии, транзитивные зависимости и библиотеки, которые вы вообще не ставили. Pip — отличный установщик, но ужасный менеджер проектов. В 2025 году стыдно таскать за собой «портянку» из текстовых файлов. В этой статье я покажу, как Poetry превращает ад зависимостей в скучный и предсказуемый процесс. Разберем pyproject.toml, магию lock-файла и переедем с Pip за 5 минут без боли. Внутри: туториал, гайд по миграции и честный разбор минусов (да, Poetry тоже не идеален).

    habr.com/ru/articles/969296/

    #poetry #venv #requirements #python #python3 #python_для_начинающих

  14. 🚫 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: ka2in.github.io/mydocusaurus/b

  15. 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

    #python #venv

  16. Your too deep in the 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.

  17. #ayuda fediverso #alpine #python #venv

    como se actualizan los paquetes de pip manejados por virtualenvironment en un alpine?

    se agradece #boost

    edit: resuelto! tuve que recrear el venv que estaba sincronizado por nextcloud y desde otro equipo no funcionaba

  18. 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 , , , , etc!

    With you sweat (and cry) during development but with (and ), you sweat (and cry) after deployment!

    I'll die on the former hill rather than the later. Thank you!

  19. 🧱 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:
    juncotic.com/contenedores-vs-e

    #Python #Docker #venv

  20. [Перевод] Год с uv — инструментом управления Python-проектами: плюсы, минусы и стоит ли переходить

    uv — это новый инструмент управления Python-проектами, разработанный командой Astral. За год активного использования автор протестировал его в разных условиях: от учебных задач до сложных production-проектов. В статье — честный разбор сильных и слабых сторон uv, его отличий от других менеджеров окружений, реальных ограничений и сценариев, где он работает особенно хорошо.

    habr.com/ru/companies/otus/art

    #dependency_management #uv #python #управление_пакетами #package_manager #pip #venv

  21. For some reason, since this morning, the #pip that I installed via #pipx does not work with my other #virtualenv setups anymore (it installs all packages in its own pipx venv instead of the currently active venv).

    Has anyone else encountered this issue? It makes pip virtually (hoho) unusable!

    #python #venv #virtualEnvironment

  22. Python для начинающих дата-аналитиков: как настроить виртуальное окружение?

    Привет! Меня зовут Женя и я работаю аналитиком данных. В этой статье я бы хотел рассказать начинающим аналитикам о том, как правильно настроить окружение для работы с Python. Когда я только начинал заниматься анализом данных, концепция питоновского виртуального окружения вводила меня в ступор, и здесь я постараюсь показать, что в ней нет ничего сложного.

    habr.com/ru/articles/889670/

    #venv #pip #data_analysis #uv #pandas #jupyter_notebook #python

  23. 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?

    #python #development #fail

    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

  24. 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?

    #venv #poetry #pipenv #askFedi

  25. [Перевод] Стоит ли использовать Python venv в контейнере, таком как Docker? Определённо

    Стоит ли использовать Python venv в контейнерах, таких как Docker? На первый взгляд может показаться, что это лишний шаг, ведь контейнер уже обеспечивает изоляцию. Но что, если отказ от venv обернётся неожиданными конфликтами, сложностью поддержки и скрытыми рисками для вашего проекта? Из этой статьи узнаем, почему даже в контейнеризированной среде venv остаётся важным инструментом для обеспечения стабильности и однородности разработки.

    habr.com/ru/companies/otus/art

    #Python #виртуальное_окружение #venv #docker

  26. 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.

  27. 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.

    bitecode.dev/p/yes-you-should-

    #Python #Docker #VirtualEnvironment #DevOps #SoftwareDevelopment #Programming #venv

  28. 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

Share on Mastodon

Enter the server where you have an account.