paddlehub 安裝過程


C:\Users\lin26>pip install paddlehub==1.6.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

出錯:

Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:

————————————————

原因一:是setuptools的版本太低,只不過是它的另一種表現形式,新版本的setuptools有新功能,pip下載的時候會使用最新的下載途徑,就會用到這個新功能,然而如果你的版本較低,就沒有這個功能,然后就會報錯;
AttributeError: module ‘setuptools.build____meta’ has no attribute ‘__legacy__’,你的電腦可能報的不一定是’__legacy__’,但是原因還是一樣的,要更新setuptools,使用指令:
pip install --upgrade setuptools

原因二(by lin ):

因為我用的是python2.7,opencv-python的最新版本已經不開放對python2.7的支持,所以想要python2.7想要正確安裝opencv-python只能下載低版本。
解決辦法:python -m pip install opencv-python==4.2.0.32

再運行:C:\Users\lin26>pip install paddlehub==1.6.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

 出錯:Building wheel for sentencepiece (setup.py) ... error

ERROR: Command errored out with exit status 1:

error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27

所以,還是用whl文件安裝吧
----------------------------------------


————————————————

如果還是不行

先安裝wheel后再安裝pandas試試
pip install wheel -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM