赞
踩
首先第一步,安装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版本的,按照这个没有问题!
解决问题才是学习的开始!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。