and python 3.7 to path_pipenv requires python 3.7 but installed version is 3.8 and won't install

问题

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

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

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

pipenv install

Complained that:

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

This is the 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"

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.

回答1:

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

回答2:

[requires]

python_version = "3.7"

and the error:

Warning: Python 3.7 was not found on your system…

Sort of hints that pipenv is installed but when it reads your config file, it sees that it should create environment with python 3.7, So, logically, you should install 3.7 or update the pipfile to use the python you have installed ?

来源:https://stackoverflow.com/questions/63247803/pipenv-requires-python-3-7-but-installed-version-is-3-8-and-wont-install

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值