zoukankan      html  css  js  c++  java
  • 【异常】tensorboard 1.14.0 has requirement setuptools>=41.0.0, but you'll have setuptools 40.6.3

    1. 问题描述:
      pip 安装 tensorflow 时,出现异常提示,具体如下:
    pip install tensorflow
    

    出现如下错误提示(setuptools 版本太旧 , wrapt 不能卸载):

    tensorboard 1.14.0 has requirement setuptools>=41.0.0, but you'll have setuptools 40.6.3 which is incompatible.
    
    Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall
    
    1. 解决方法:
    2. 第一种,强制安装,命令如下(推荐):
    pip install --ignore-installed tensorflow
    
    1. 第二种,按照错误提示,一步步安装(不推荐,麻烦):
    更新 wrapt
    >> pip install --ignore-installed wrapt
    Collecting wrapt
    Installing collected packages: wrapt
    Successfully installed wrapt-1.11.2
    
    更新 setuptools
    >> pip install --ignore-installed  setuptools
    Installing collected packages: setuptools
    Successfully installed setuptools-41.2.0
    
    安装 tensorflow, 这个时候就不出现错误提示了。
    pip install tensorflow
    pip list # 查看安装好的 tensorflow
    
    1. 总结
      当安装过程出现异常提示时,需要强制安装时,使用如下命令:
    pip install --ignore-installed  <库名>
    
  • 相关阅读:
    Ruby编程语言学习笔记1
    SQL SERVER 2008 基础知识
    SQLServer批量插入数据的两种方法
    JQuery基础
    wpf首次项目开发技术总结之access数据库
    wpf首次项目开发技术总结wpf页面
    c#项目开发常见问题
    pl/sql基础
    wpf 开发应用初次总结
    博客园安家
  • 原文地址:https://www.cnblogs.com/enumx/p/12336712.html
Copyright © 2011-2022 走看看