【Bug解决】ERROR: Could not find a version that satisfies the requirement cython (from versions: none)

本次教程解决Python环境下安装paddlex遇到的问题以及相关的安装包

首先第一步,安装pycocotools

PaddleX依赖pycocotools包,如安装pycocotools失败,可参照如下方式安装pycocotools

Windows安装时可能会提示Microsoft Visual C++ 14.0 is required,从而导致安装出错,请点击文章顶部,下载VC build tools安装再执行如下pip命令注意:安装完后,需要重新打开新的终端命令窗口。

接下来安装

pip install cython

有些小伙伴会报错如下的信息:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/cython/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/cython/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/cython/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/cython/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/cython/
ERROR: Could not find a version that satisfies the requirement cython (from versions: none)
ERROR: No matching distribution found for cython
WARNING: There was an error checking the latest version of pip.

解决方法

pip install cpython -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

在这里插入图片描述
接下来继续安装

pip install paddlepaddle-gpu 
pip install paddlex

然后就可以了,网上很多其他的教程安装之后都会报错,是因为没有安装GPU版本的,按照这个没有问题!

每文一语

解决问题才是学习的开始!

猜你喜欢

转载自blog.csdn.net/weixin_47723732/article/details/131733046