pipenv 需要 python 3.7,但安装的版本是 3.8,不会安装 [英] pipenv requires python 3.7 but installed version is 3.8 and won't install

查看:382
本文介绍了pipenv 需要 python 3.7,但安装的版本是 3.8,不会安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道一点 Python,一年前我写了一个小脚本,使用 pipenv 来管理依赖项.

I know a litte of Python and more that a year ago I wrote a small script, using pipenv to manage the dependencies.

旧平台为 Windows 7,当前平台为 Windows 10.

Old platform was Windows 7, current platform is Windows 10.

当时我可能已经安装了 Pyhton 3.7,现在我有 3.8.3 但正在运行:

At that time I probably had Pyhton 3.7 installed, now I have 3.8.3 but running:

pipenv install

抱怨:

Warning: Python 3.7 was not found on your system…
Neither 'pyenv' nor 'asdf' could be found to install Python.
You can specify specific versions of Python with:
$ pipenv --python path\to\python

这是 Pipfile

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
python-ldap = {path = "./dependencies/python_ldap-3.1.0-cp37-cp37m-win_amd64.whl"}
requests = "~=2.0"
mysqlclient = "~=1.0"

[dev-packages]

[requires]
python_version = "3.7"

我手动编辑了最后一行以允许使用 3.8,但我该如何正确修复它?
我认为 3.7 应该是最低要求——嗯,脚本非常简单,我认为 3.0 应该也能工作.

I manually edited that last line to allow 3.8, but how do I properly fix that?
I think 3.7 should be a minimum requirement — well, the script is so simple that I think even 3.0 should work.

推荐答案

可以从官网下载 Python 3.7 - https://www.python.org/downloads/

You can download Python 3.7 from the official site - https://www.python.org/downloads/

这篇关于pipenv 需要 python 3.7,但安装的版本是 3.8,不会安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆