我在自己的环境中进行了python 2.7的全新安装。我激活了它并打开了一个ipython会话。这是我得到的:
Python 2.7.15 |Anaconda, Inc.| (default, May 1 2018, 18:37:05)
Type "copyright", "credits" or "license" for more information.
IPython 5.8.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: from scipy import special
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-5ad56e6855d2> in <module>()
----> 1 from scipy import special
/usr/local/lib/python2.7/site-packages/scipy/special/__init__.py in <module>()
ImportError: No module named _ufuncs
使用以下命令进行安装:
conda create --name py27 python=2.7 numpy scipy matplotlib ipython jupyter pandas sympy nose python.app
,并且未报告任何错误。我能做什么?感谢您的帮助!