机器学习, 第四节课,跑intro.py报错,求助!

Traceback (most recent call last):
  File "/Users/kenny/PycharmProjects/ML/l4/4.1.intro.py", line 13, in <module>
    from scipy.optimize import leastsq
  File "/anaconda/envs/py36/lib/python3.5/site-packages/scipy/optimize/__init__.py", line 240, in <module>
    from .optimize import *
  File "/anaconda/envs/py36/lib/python3.5/site-packages/scipy/optimize/optimize.py", line 37, in <module>
    from .linesearch import (line_search_wolfe1, line_search_wolfe2,
  File "/anaconda/envs/py36/lib/python3.5/site-packages/scipy/optimize/linesearch.py", line 18, in <module>
    from scipy.optimize import minpack2
ImportError: dlopen(/anaconda/envs/py36/lib/python3.5/site-packages/scipy/optimize/minpack2.cpython-35m-darwin.so, 2): Symbol not found: _main
  Referenced from: /anaconda/envs/py36/lib/python3.5/site-packages/scipy/optimize/minpack2.cpython-35m-darwin.so
  Expected in: flat namespace
 in /anaconda/envs/py36/lib/python3.5/site-packages/scipy/optimize/minpack2.cpython-35m-darwin.so

HuangFujun

赞同来自: wangxiaolei

安装老版本scipy后解决问题

要回复问题请先登录注册