cyrilhuei 发表于 2020-4-24 13:40:58

安装whl文件失败

pip install d:\pandas-1.0.3-cp38-cp38-win32.whl
Processing d:\pandas-1.0.3-cp38-cp38-win32.whl
Collecting numpy>=1.13.3 (from pandas==1.0.3)

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x03CA7CE8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/numpy/

求助:以上这个问题该如何解决呢。。

weiter 发表于 2020-4-24 13:52:01

本帖最后由 weiter 于 2020-4-24 13:55 编辑

网页自带的翻译提到连接超时
建议试一下下面这段代码
python -m pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple

把opencv-python那块换成你要下载的包,然后就可以大幅加快安装模块的速度

Hello. 发表于 2020-4-24 13:53:48

–trusted-host pypi.mirrors.ustc.edu.cn
国内镜像试试

Hello. 发表于 2020-4-24 13:55:27

国内镜像地址
阿里云 http://mirrors.aliyun.com/pypi/simple/
中科大 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣 http://pypi.douban.com/simple/
清大 https://pypi.tuna.tsinghua.edu.cn/simple/

weiter 发表于 2020-4-24 13:55:34

python -m pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple

把opencv-python那块换成你要下载的包,然后就可以大幅加快安装模块的速度

悠悠2264 发表于 2020-4-24 14:50:38

执行:
pip install d:\pandas-1.0.3-cp38-cp38-win32.whl -i https://pypi.tuna.tsinghua.edu.cn/simple/
使用清华镜像,因为安装此模块还需安装numpy

cyrilhuei 发表于 2020-4-24 18:57:02

感谢各位朋友的协助!!

尝试了还是不行。。。 最后把VPN一关,发现就OK了。。。。
页: [1]
查看完整版本: 安装whl文件失败