pip install pynlpir 时出现错误:
ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.
解决方法:
使用国内镜像下载python库
pip install --index https://pypi.mirrors.ustc.edu.cn/simple/ pynlpir
在执行pip install pynlpir命令时,就会去官方网站搜pynlpir,搜到后下载压缩包并解压安装,但国内访问国外网站总不是很顺畅,于是就有了pypi镜像
pypi国内常用的镜像源:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
安装第三方库pynlpir时出现 “Read timed out.”错误
最新推荐文章于 2024-04-23 13:31:48 发布