当我尝试pipinstall pipenv时,我收到以下错误:
nathan@DESKTOP-KKB4QL2:/mnt/c/Users/Nathan/Dropbox$ pip install pipenv
Downloading/unpacking pipenv
Downloading pipenv-11.7.1.tar.gz (5.0MB): 5.0MB downloaded
Running setup.py (path:/tmp/pip_build_nathan/pipenv/setup.py) egg_info for package pipenv
error in pipenv setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
Complete output from command python setup.py egg_info:
error in pipenv setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_nathan/pipenv
Storing debug log for failure in /home/nathan/.pip/pip.log
我试图更新pip,但这只会导致异常。
答案 0 :(得分:5)
确保使用正确版本的pip。您的点数可能默认为2.7,您可以尝试使用pip3.6或在您的系统中查找任何/所有版本的点数。
当我尝试
时,我遇到了这个问题pip install --user pipenv
我尝试时修复了(在MacOS sierra上)
sudo -H pip3.6 install -U pipenv
由于