Hacker News new | ask | show | jobs
by depressedpanda 2751 days ago
Why are you having issues with Debian and pip?

- First of all, never `sudo pip install` anything.

- Second, on a fresh Debian install, run `sudo apt install python3-pip && pip3 install --user --upgrade` to get the latest pip while still allowing Debian to use its old outdated version. I would actually recommend you remove it to prevent you from accidentally using with (with `sudo apt purge python3-pip`), unless you need it available at the system level for some reason.

- Add `~/.local/bin` to your $PATH.

- If you need to deal with py2 packages for some reason, consider managing multiple Python versions with pyenv[1].

I won't go into Pipenv because I dislike the tool.

[1]: https://github.com/pyenv/pyenv