[英]I can't do anything with pipenv
ERROR:: --system is intended to be used for pre-existing Pipfile installation, not installation of specific packages.错误:: --system 旨在用于预先存在的 Pipfile 安装,而不是特定软件包的安装。 Aborting.中止。
I can't use pipenv in Ubuntu18.04.我不能在 Ubuntu18.04 中使用 pipenv。 How can I fix it?我该如何解决?
This is an open issue in the Pipenv repository: https://github.com/pypa/pipenv/issues/5052 .这是 Pipenv 存储库中的一个未解决问题: https ://github.com/pypa/pipenv/issues/5052。
From the discussion in the thread, it seems to pop up when there is an existing virtualenv that was created with the same directory path.从线程中的讨论来看,当存在使用相同目录路径创建的现有 virtualenv 时,似乎会弹出。 The solution mentioned in the thread is to simply remove this virtualenv which fixes the issue.线程中提到的解决方案是简单地删除这个修复问题的 virtualenv。
You can use the python virtual environment,可以使用python虚拟环境,
python -m venv venv # Creates virtual environment
source venv/bin/activate
要激活虚拟环境,请执行source venv/bin/activate
pip install lib
然后你可以使用pip install lib
安装你的包To deactivate virtual environment type deactivate
停用虚拟环境类型deactivate
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.