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

     
     
  • 相关阅读:
    poj 1789 Truck History(最小生成树)
    POJ 3096 Surprising Strings(STL map string set vector)
    hdu 1412 (STL list)
    POJ 1552 Doubles (C++ STL set使用)
    poj 水题系列
    洛谷P4859 已经没有什么好害怕的了
    CF1228E Another Filling the Grid
    二项式反演
    AT [ABC177F] I hate Shortest Path Problem
    [NOI2020]制作菜品
  • 原文地址:https://www.cnblogs.com/cheflone/p/14173598.html
Copyright © 2011-2022 走看看