简体   繁体   中英

How to fix 'Specifier python_version does not match 2.7 (3.6).'

I'm trying to install django with pipenv on ubuntu 18.04 but the problem is that pipenv always install python 2.7 inside the project. When I type pipenv --python 3.6 it give me this error message: "pipenv check will surely fail.". And when I type pipenv check I get this message: "Checking PEP 508 requirements… Specifier python_version does not match 2.7 (3.6). Failed!". Any suggestions ?

Yeah, it's pretty silly that you can't actually select the python version you want to run in a virtual environment. My solution:

pip uninstall pipenv

https://github.com/pypa/pipenv/issues/1050

Take a look at that. The only "solution" right now is to remove the python_version key from the Pipfile.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM