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.

在这里插入图片描述
输入命令: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: francois.chollet@gmail.com
License: MIT

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值