[英]I can't use django with python 3.7
My original python version is 3.6.9 >> I have installed 3.7 manually >> then I tried to use pipenv to create a virtual environment >>我原来的python版本是3.6.9>>我已经手动安装了3.7>>然后我尝试使用pipenv创建虚拟环境>>
pipenv --python 3.7
every thing was fine until I tried to install django, I had this error and I don't know how to deal with it.一切都很好,直到我尝试安装 django,我遇到了这个错误,我不知道如何处理它。
ERROR: ERROR: Could not find a version that matches django
If I created my virtual environment using python 3.6, every thing works just right.如果我使用 python 3.6 创建我的虚拟环境,那么一切都正常。
Found the problem.发现问题了。 The problem is seen when dependent packages are kept to '*' in Pipfile.
当依赖包在 Pipfile 中保留为“*”时会出现问题。 If we pin to right dependent package version for django.
如果我们为 django 固定到正确的依赖包版本。 The error goes away.
错误消失了。
I think the output of pipenv is not clear.我认为 pipenv 的输出不清楚。 May be it could print the mismatch in dependent package version.
可能它可以打印依赖包版本中的不匹配。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.