我正在关注 William S. Vincent 在 DjangoForBeginners 中的示例,并尝试在 python 3.7 中为 django==2.7 启动一个虚拟环境,但似乎只需要 Python 3.6 来启动 pipenv。
Jamess-MacBook-Pro:ch04 otomes$ pipenv install django==2.1
Warning: Your Pipfile requires python_version 3.6, but you are using None (/Users/otomes/.local/share/v/o/bin/python).
$ pipenv --rm and rebuilding the virtual environment may resolve the issue.
$ pipenv check will surely fail.
Installing django==2.1…
Adding django to Pipfile's [packages]…
? Installation Succeeded
Installing dependencies from Pipfile.lock (e222e2)…
An error occurred while installing django==2.1 --hash=sha256:7f246078d5a546f63c28fc03ce71f4d7a23677ce42109219c24c9ffb28416137 --hash=sha256:ea50d85709708621d956187c6b61d9f9ce155007b496dd914fdb35db8d790aec! Will try again.
An error occurred …Run Code Online (Sandbox Code Playgroud)