微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

pip 安装成功,但安装安装失败

如何解决pip 安装成功,但安装安装失败

我成功使用了 pip install -r pip_list.txt

# setup.py
from setuptools import setup

setup(
    name='test',version='0.1',py_modules=['test'],install_requires=[
      ...  # Same as pip_list.txt
    ],entry_points='''
        [console_scripts]
        test=test:cli
    ''',)

运行 python setup.py install 失败。
error: idna 3.1 is installed but idna<3,>=2.5 is required by {'requests'}

pip.conf

[global] 
index_url = https://.../prod/+simple/ 
[search] 
index = https://.../prod/

setup.cfg

[easy_install]
index_url = https://.../prod/+simple/ 

我在 setup.cfg 中没有找到 [search] 选项。以上错误是否与此有关?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。