zoukankan      html  css  js  c++  java
  • paddlehub 安装过程

    C:Userslin26>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:Userslin26>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

  • 相关阅读:
    Java对ArrayList进行排序
    Android app Splash页的替代方案
    算法
    Android动画 三种动画
    oracle连接-会话-进程
    spring使用Redis自定义前缀后缀名(去掉SimpleKey []+自定义)
    Redis(RedisTemplate)运算、算法(incr、decr、increment)
    Redis(RedisTemplate)使用hash哈希
    Redis(RedisTemplate)使用list链表
    Redis(RedisTemplate)使用string字符串
  • 原文地址:https://www.cnblogs.com/alex-13/p/15270225.html
Copyright © 2011-2022 走看看