在Spyder anaconda上安装biopython后,numpy和pandas破裂了

时间:2017-12-15 17:46:23

标签: python-2.7 anaconda spyder

我在windows上使用spyder 2 anaconda 2.3.0作为python 2.7的python IDE。我已经使用了很长时间来编写python代码,但突然间我不知道发生了什么,它说我没有安装biopython包,当我安装biopython使用     conda -c安装anaconda biopython 命令,biopython开始运行,但它打破了熊猫和numpy。 现在,当我导入大熊猫时,我得到了这个:

>>> import pandas as pd
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Anaconda\lib\site-packages\pandas\__init__.py", line 13, in 
<module>
    "extensions first.".format(module))
ImportError: C extension: hashtable not built. If you want to import pandas 
from the source directory, you may need to run 'python setup.py build_ext --
inplace' to build the C extensions first.

然后当我导入numpy时,我得到了这个:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Anaconda\lib\site-packages\numpy\__init__.py", line 142, in <module>
    from . import add_newdocs
  File "C:\Anaconda\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "C:\Anaconda\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
    from .type_check import *
  File "C:\Anaconda\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "C:\Anaconda\lib\site-packages\numpy\core\__init__.py", line 26, in <module>
    raise ImportError(msg)
ImportError: 
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).  Otherwise reinstall numpy.

Original error was: DLL load failed: The specified module could not be found.

我卸载了numpy和pandas,然后使用pip将它们安装回来......仍然是一样的。我完全没有安装anaconda并安装它仍然是相同的错误。我真的不知道是什么导致了这一点。任何帮助将得到真正的赞赏。过去三天我一直试图解决这个问题而且没有成功。谢谢你的时间。

0 个答案:

没有答案