python3 pip安装pycur报错

python pip 安装pycur报错 Complete output from command python setup.py egg_info:Please specify --curl-dir=/path/to/built/libcurl

 pip install pycurl -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pycurl
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ac/b3/0f3979633b7890bab6098d84c84467030b807a1e2b31f5d30103af5a
71ca/pycurl-7.43.0.3.tar.gz
    Complete output from command python setup.py egg_info:
    Please specify --curl-dir=/path/to/built/libcurl

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 10 in C:\Users\yxg\AppData\Local\Temp\pip-install-b12dg703\pyc
url\
You are using pip version 19.0.3, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

解决办法:

python版本低于3.6

pip install pycurl -i https://pypi.tuna.tsinghua.edu.cn/simple

python高于3.6

pip install wheel

再打开http://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl,下载对应的pycurl版本的whl文件。

pip install pycurl-7.43.0-cp36-cp36m-win_amd64.whl
发布了121 篇原创文章 · 获赞 54 · 访问量 44万+

猜你喜欢

转载自blog.csdn.net/wm9028/article/details/102726355
今日推荐