Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我原来的python版本是3.6.9>>我已经手动安装了3.7>>然后我尝试使用pipenv创建虚拟环境>>
pipenv --python 3.7
在我尝试安装 django 之前,一切都很好,我遇到了这个错误,我不知道如何处理它。
ERROR: ERROR: Could not find a version that matches django
如果我使用 python 3.6 创建我的虚拟环境,那么一切正常。
错误的图像
发现了问题。当依赖包在 Pipfile 中保持为“*”时,就会出现问题。如果我们固定到 django 的正确依赖包版本。错误消失。
我认为 pipenv 的输出并不清楚。可能它可以打印依赖包版本中的不匹配。