当前位置:   article > 正文

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

error: could not find a version that satisfies the requirement cython (from

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

首先第一步,安装pycocotools

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

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

接下来安装

pip install cython
  • 1

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

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.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

解决方法

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

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

pip install paddlepaddle-gpu 
pip install paddlex
  • 1
  • 2

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

每文一语

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/745205
推荐阅读
相关标签
  

闽ICP备14008679号