错误安装scikit在mac上学习

时间:2015-01-21 19:57:43

标签: python numpy pip

尝试在mac上安装scikit时出现以下错误。我似乎没有找到任何解决这个问题的方法。有人可以帮忙吗?

xxxx-MacBook-Pro:site-packages xxxx$ sudo pip install -U numpy scipy scikit-     learn
Downloading/unpacking numpy from    https://pypi.python.org/packages/source/n/numpy/numpy- 1.9.1.tar.gz#md5=78842b73560ec378142665e712ae4ad9
  Downloading numpy-1.9.1.tar.gz (4.0Mb): 4.0Mb downloaded
  Running setup.py egg_info for package numpy
    /Library/Python/2.7/site-packages/build/numpy/setup.py:160: Warning:      'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "/Library/Python/2.7/site-packages/build/numpy/setup.py", line 160
    with open('.gitmodules') as f:
            ^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
/Library/Python/2.7/site-packages/build/numpy/setup.py:160: Warning: 'with' will become a reserved keyword in Python 2.6

Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/Library/Python/2.7/site-packages/build/numpy/setup.py", line 160

with open('.gitmodules') as f:

        ^

SyntaxError: invalid syntax

输出pip:

//anaconda/bin/pip

0 个答案:

没有答案