#virtualenv

hugovangalen 🤖 🕹️ 😼hvangalen@mastodon.nl
2025-03-27

So, I'm tinkering a bit with #Django, and I wanted to run different Django versions on the /same/ virtual machine. Here `#virtualenv` helps only insomuch that it can seperate dev envs, but it all still shares the `~/.local/lib/python3.10/site-packages` folder.

(I can't imagine this problem hasn't been solved, but couldn't find anything online.)

I've resorted to overriding HOME: basically I wrote a `virtualenvenv` script that I source, and then I have the separation I want/need. 🔨

2025-03-19

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

Alexandre B A Villares 🐍villares@ciberlandia.pt
2025-03-12

If I had the time and energy I would:

  • Make a #ThonnyIDE plug-in to launch #JupyterLab from the Thonny GUI interface (using Thonny's #Python #virtualenv;
  • Write some code to convert #geoDataFrames with a graphic attributes column into #py5 styled shapes;
  • Make a search interface to my daily sketch-a-day sketches and fix the RSS.

My final boss in solving this #Django on #Alpine container thing is getting #Apache/#WSGI (mod_wsgi) working. My container runs Apache fine, I suppose, if I don't supply it any site config - but once I do (i.e. in /etc/apache2/conf.d), I'm getting Segmentation fault core dumped errors and reboots.

I'm assuming, as far as my config goes, I need to point
python-home to where my #virtualenv is, in addition to python-path to where my Django site/app is (like I do on #Ubuntu since that does not enforce the use of venv yet). But that doesn't seem to be enough, so again, in addition to apache2, apache2-mod-wsgi, and apache2-utils (and perhaps musl-dev and gcc in runtime other than just during build), what am I missing?

@mckean
I presume you are speaking about the package and project manager uv?

docs.astral.sh/uv/

Sounds interesting, thanks for the impetus to take a look at it.

#uv #python #pip #pipx #virtualenv #astral

atareao 🦀🐍🐋🐧atareao
2025-02-17

671 - Descubre la herramienta que cambiará como usas Python

es la herramienta perfecta para gestionar proyectos y dependencias de y que viene a sustituir a y otras

Como ya te he comentado en mas de una ocasión, la llegada de Rust, está suponiendo una auténtica revolución. Los desarrolladores apoyados en Rust se ha

youtube.com/watch?v=Jb-9QII_E1Y

2025-02-11

Troubleshooting Python Virtual Environment Errors on Windows 11. Common causes include PATH variable issues, environment creation inconsistencies, and permission problems. Learn how to resolve these errors and improve your workflow using advanced techniques & tools like virtualenvwrapper or conda.
tech-champion.com/microsoft-wi

2025-01-30

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

2025-01-26

quicktipp #97: Sharing Python environments on Windows using portable Python Bundles.

dev.to/treehouse/portable-pyth

2025-01-21

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.

Andrea Grandi 🦕andreagrandi
2025-01-08

Using pyenv and pyenv-virtualenv to install Python and create a virtual environment on MacOS andreagrandi.it/posts/install-

I keep referring to this blog post of mine a lot. I'm glad I took some time to note all my process so I can reuse it int he future (and hopefully it's useful for other people too)

@forse

Can you try installing it with `pipx` instead?

pipx will create a Python virtualenv just for that program, and install all of its dependencies into that virtual environment. It can then run independently of any system-level versions of those same packages that are installed *for the distro-shipped Python tools*.

The version pipx installs can be upgraded (or left alone) completely independently of OS updates.

#pip #pipx #virtualenv

Felix 🇨🇦 🇩🇪 🇺🇦fst@mstdn.io
2024-11-20

Just tried the #uv #Python management tool. At first I thought: Oh no, not another Python package manager. But this one seems different. It combines all the pip-tools, #pyenv, #poetry, #virtualenv, etc in one.
And it's damn fast. This likely will stay with me for a while.

docs.astral.sh/uv/

Charles Tapley Hoytcthoyt@scholar.social
2024-11-14

I'm trying to use mypy inside tox with tox-uv, but mypy's --install-types flag hardcodes the usage of pip. When you're using tox-uv, pip is no longer installed in the environment because uv does the heavy lifting with `uv pip install` as a faster alternative to `pip install`

Here's my attempt at making mypy more configurable so it can install types using uv:

github.com/python/mypy/compare

#python #packaging #typing #uv #mypy #tox #virtualenv

@samuel

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.

#library #embed #vendor #venv #virtualenv

2024-10-02

After a series of system updates this week, my #Python path variables are not updating correctly when using #virtualenv . Talk about frustrating.

Simon D. ⏚Siltaer@mamot.fr
2024-10-01

« Do not try and use a Python virtual environment from one Python installation or version with mod_wsgi, when mod_wsgi was compiled for a different one. »
modwsgi.readthedocs.io/en/deve

C'est génial #virtualenv avec #Python, mais #mod_wsgi te remet direct les pieds sur terre.

Paolo Melchiorrepaulox@fosstodon.org
2024-09-13

I'm looking for advice on the best way to install Python on a new MacBook Pro 🍎

On my Dell XPS 13 with Ubuntu 24.04 the time to install Python and start programming is literally 0 seconds, since it is pre-installed 🐧

I would like to avoid bloatware (eg: Xcode or similar), Docker (at least for now) or GUI, unless absolutely necessary to create a virtualenv in the terminal and start programming with Django (if it's possible) 🐍

Less is more ✨

#Python #VirtualEnv #macOS #BestPractise #Olivetti

A picture of the Olivetti Programma 101 (1965) the worlds' first desktop personal computer.t

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst