grim_io 11 hours ago

Ah, the joys of

  sudo pip install
If you are unexperienced, I recommend you stick with uv and set the env var: UV_MANAGED_PYTHON=true

This will make uv not consider system python, only the uv-managed python versions. No more f-ing up the system python and juggling with multiple apt-installed python versions.

netfortius 12 hours ago

Creating and using tons of python scripts under Homebrew, I had to learn by heart:

$ python3 -m venv .venv # Create a virtual environment

$ source .venv/bin/activate # Activate the virtual environment

(.venv) pip install <whatever you need> # Install stuff within the virtual environment

...

(.venv) deactivate

$ [sudo] rm -fR .venv

kgwxd 13 hours ago

I tried learning Python recently to move away from .NET. Wish I hadn't spent so much time reading about the language before actually trying to do a real world project. That environment and pip stuff is terrible. Where did they get the idea to do that? No other language I've come across has tooling that ridiculous. I switched to Go instead.

  • p4ul 13 hours ago

    If you haven't written off Python completely, I would suggest giving it a second chance using uv [1] for managing environments and Python versions. In my opinion, uv is the best thing to happen to Python in 10 years.

    [1] https://docs.astral.sh/uv/

    • r-johnv 12 hours ago

      Uv and uvx have been such game changers when we tried to distribute our python packages.

    • VeejayRampay 12 hours ago

      ruff is a blessing as well and soon ty will make type checking so much better (or pyrefly which also seems great)