我正在尝试从
http://www.scipy.org/Download安装numpy.
通过git clone git://github.com/numpy/numpy.git numpy
但是,当我运行python setup.py安装
我有:
SystemError:无法编译“Python.h”.也许你需要安装python-dev | python-devel
在哪里可以获得python-dev?
我试过了:
$easy_install python-devel
Searching for python-devel
Reading http://pypi.python.org/simple/python-devel/
Couldn't find index page for 'python-devel' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for python-devel
error: Could not find suitable distribution for Requirement.parse('python-devel')
和
$easy_install python-dev
Searching for python-dev
Reading http://pypi.python.org/simple/python-dev/
Couldn't find index page for 'python-dev' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for python-dev
error: Could not find suitable distribution for Requirement.parse('python-dev')
任何帮助将不胜感激.
为了解决python-dev的问题,我在我的本地目录中安装了python2.6.
但是,当我使用python setup.py install –user来安装numpy时,
我有:
$python setup.py install –user
“进口现场”失败;
使用-v进行追溯Traceback(最近的最后一次调用):文件“setup.py”,第18行,
导入os ImportError:
没有名为os的模块
在python2.6
我得到:>>> import os Traceback(最近的最后一次调用):FileError“Import”中的第1行:没有名为os的模块
任何帮助将不胜感激.谢谢
以下链接没有帮助,因为我没有root权限,不能使用sudo.