numpyをhttp://www.scipy.org/Downloadからインストールしようとしています。 git clone git://github.com/numpy/numpy.git numpy
linuxの赤い帽子に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をインストールしました。私は、
をnumpyのをインストールするには、--userをsetup.py installをパイソンを使用したときに私が得た
しかし、:
$パイソンはsetup.py installを--user
「輸入サイトの失敗;トレースバックトレースバック(最新の呼び出しの最後)のための
は利用-v:ファイル "setup.py"、18行目、インポートのOSはImportErrorで
:python2で
ないモジュールという名前のOS
0.6
私が得た:>>>インポートのOSトレースバック(最新の呼び出しの最後):はImportErrorで、「」行1ファイル:いいえモジュールという名前のOS
をすべてのヘルプはアプリになります再発行された。ありがとう
私はroot権限を持っておらず、sudoを使うことができないので、以下のリンクは役に立ちません。
どのLinuxディストリビューションをお使いですか? – Keith
管理者権限(root)を持っている人にそのパッケージをインストールするように頼むことができますか? – Keith
Linuxは2.6.32です。 –