gpt4 book ai didi

python - pipenv 安装命令错误 : 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers

转载 作者:太空宇宙 更新时间:2023-11-03 14:00:52 24 4
gpt4 key购买 nike

当我尝试 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,但结果出现异常。

最佳答案

确保您使用的是正确版本的 pip。您的 pip 可能默认为 2.7,您可以尝试 pip3.6 或在您的系统中找到任何/所有版本的 pip。

我在尝试时遇到了这个问题

pip install --user pipenv

这在我尝试时已修复(在 MacOS sierra 上)

sudo -H pip3.6 install -U pipenv

谢谢

关于python - pipenv 安装命令错误 : 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49268638/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com