pip小技巧

pip安装jieba报错:

Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/gevent/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/gevent/ (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)'),)) - skipping

  ERROR: Could not find a version that satisfies the requirement gevent (from versions: none)

ERROR: No matching distribution found for gevent

解决方式:
通过-i参数指定源直接下载

pip --trusted-host pypi.tuna.tsinghua.edu.cn install -i https://pypi.tuna.tsinghua.edu.cn/simple jieba

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。