Mask R-CNN环境配置 pip install -r requirements出现的bug解决

Mask R-CNN环境配置 pip install -r requirements出现的bug解决

  • 问题1:
Could not find a version that satisfies the requirement tensorflow>=1.3.0 (from -r requirements.txt (line 7)) (from versions: )
No matching distribution found for tensorflow>=1.3.0 (from -r requirements.txt (line 7))`

当出现如shang问题时,升级pip

解决方案:
 输入命令
 pip install -U pip

  • 问题2:
    问题:出现类似如下问题:卸载不了包
Cannot uninstall 'Werkzeug'. 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.

Mask R-CNN环境配置 pip install -r requirements出现的bug解决_第1张图片
输入命令:pip uninstall Werkzeug 发现卸载不了 。
**解决方案:**输入命令conda uninstall Werkzeug
**问题说明:**类似”Werkzeug“包是anaconda自带的包,卸载需要用“conda”命令;而如果用pip下载的话,需要用pip卸载
问题解决.
再次执行,直到执行pip install -r requirements.txt 命令不报错后,Mask-RCNN相关环境配置就全部完成

**验证:**命令行输入python,import keras和tensorflow,导入成功表示完成
或者输入命令:

pip show tensorflow

pip show keras

出现下面描述表示成功:

Name: Keras
Version: 2.2.4
Summary: Deep Learning for humans
Home-page: https://github.com/keras-team/keras
Author: Francois Chollet
Author-email: [email protected]
License: MIT

你可能感兴趣的:(Mask,R-CNN环境配置)