I am running Debian bullseye/sid and recently updated to Debian unstable to experiment with the Sway windows manager. This went fine until I updated to a more recent version of python. My python3 is currently version 3.7.4.
Since updating, I can no longer import pipenv or pip and some other global packages are missing.
$ pipenv shell
Traceback (most recent call last):
File "/home/user/.local/bin/pipenv", line 6, in <module>
from pipenv import cli
ModuleNotFoundError: No module named 'pipenv'
In /usr/bin I have python2.7, python3.5, and python3.7. Pip is installed: "which pip" reads "/usr/bin/pip". I installed pipenv as a user installation (pip install --user pipenv). The binary is present.
Can anbody give me pointers on how best to investigate this problem?
edit: hm, in addition to updating, I also changed the default python version:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
This is not advised, and, since I almost invariably work in venvs, would have made little difference to me even if it were so problematic. Before holidays I do dumb stuff ¯\_(ツ)_/¯