我正在尝试从http://www.scipy.org/Download下载numpy。通过
而且
任何帮助都会受到赞赏。
为了解决 python-dev 的问题,我在本地目录中安装了 python2.6。
但是,当我使用 python setup.py install --user 安装 numpy 时,
我得到了以下错误信息: $ python setup.py install --user 'import site' 失败;
使用 -v 来获取 traceback。Traceback (most recent call last): File "setup.py", line 18,
in import os ImportError:
没有找到 os 模块
在 python2.6 中,我得到了以下信息:
>>> import os Traceback (most recent call last): File "", line 1, in ImportError: No module named os
任何帮助都会受到赞赏。谢谢。
以下链接并不有用,因为我没有 root 权限,无法使用 sudo。 example1 example2
git clone git://github.com/numpy/numpy.git numpy
进行安装。但是,当我运行python setup.py install
时,出现以下错误:SystemError: Cannot compile 'Python.h'. Perhaps you need to install 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 'import site' 失败;
使用 -v 来获取 traceback。Traceback (most recent call last): File "setup.py", line 18,
in import os ImportError:
没有找到 os 模块
在 python2.6 中,我得到了以下信息:
>>> import os Traceback (most recent call last): File "", line 1, in ImportError: No module named os
任何帮助都会受到赞赏。谢谢。
以下链接并不有用,因为我没有 root 权限,无法使用 sudo。 example1 example2