zoukankan      html  css  js  c++  java
  • mportError: 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 两次

    然后在下载(注意是pip还是conda)

    转载于:https://blog.csdn.net/qq_29134801/article/details/102648699

     
     
  • 相关阅读:
    vue(七)--监听属性(watch)
    vue(六)--计算属性(computed)
    JVM参数配置&&命令工具
    GC回收算法&&GC回收器
    JVM宏观认知&&内存结构
    分布式配置中心Apollo——QuickStart
    了解敏捷开发
    服务链路跟踪 && 服务监控
    数据读写API——IO流
    Nginx+Zuul集群实现高可用网关
  • 原文地址:https://www.cnblogs.com/cheflone/p/14173598.html
Copyright © 2011-2022 走看看