问题
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