|
|
1
2
问题是由于安装pipenv时重写了pip的系统管理版本。通过按顺序恢复系统管理的pip,您执行了正确的第一步:
这应该在/home/username/.local中的用户级别安装pipenv,这样它就不会与pip的全局版本发生冲突。在我的例子中,在运行'--user'开关后,这仍然不起作用,所以我再次运行较长的“修复我搞砸了什么”命令来准备环境:
然后进行了以下操作:
请确保导出操作(在此过程中对我咬了一次):
然后,我运行了
参考文献: https://pipenv.readthedocs.io/en/latest/diagnose/#no-module-named-module-name https://pipenv.readthedocs.io/en/latest/install/#pragmatic-installation-of-pipenv https://pip.pypa.io/en/stable/user_guide/#user-installs |