解决问题:ImportError: Something is wrong with the numpy installation. While importing we detected an old

问题原版:

ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['/home/guowei/env/enter/envs/cbert_aug/lib/python3.6/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.
 

在解决这个问题的过程中,我按照它的指示进行conda uninstall numpy ,但重装之后,并没有用。

我以为是conda中有三个python,(python,python3,python3.6)导致的。

但实际上不是,这三个python他们共同享有site-package中的python3.6下安装的库。

也就是说,并不是我指定的python的问题。

我检查了site-package中的python3.6库,发现里面确实有numpy.

那么问题出现在哪里呢?

出现在我安装其他涉及到numpy的包的时候,有用到pip.

所以,用pip uninstall 之后,就发现,需要连续uninstall 两次,才能将numpy彻底删去。

 

综上,conda 和 pip 是两套机制,尽量不要去混用。

解决方案:pip uninstall numpy 两次

  • 13
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值