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
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/
In a moment of boredom, I decided to see what the fuss is all about with #zsh and install/config a basic setup on my #debian #trixie main desktop.
I've left my default shell as bash, and just changed the terminal to use zsh.
Overall, it's quite helpful. Added a few plugins, #ohmyzsh plus some #powerlevel10k and a couple of custom plugins for autocompletion and highlighting.
It makes working in the terminal a little more informative, plus also automating things like #python #venv when I cd into the directory.
Not perfect, and I've only spent an hour or so on it, but certainly good enough for now and for a first try.
Outside the os_icon being the #linuxtux and not the #debian logo, which I can't seem to fix, all seems to be working as expected.
Today I learned how to use #DevContainer in #VSCode for my #Python projects.
Interesting concept, will most probably replace my #venv for python
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