2011-08-11 7 views
2

私はMacでポートを持つscipyをインストールしました。ポートはどこにosxにインストールされますか?

$ sudo port install py-scipy 
Password: 
---> Computing dependencies for py-scipy 
---> Cleaning py-scipy 

しかし、私は、Pythonをプルアップするとき、それはそれを見ていない:それはすべての罰金と言う

$ python2.6 
Python 2.6.7 (r267:88850, Jul 27 2011, 11:54:59) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import scipy 
Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
ImportError: No module named scipy 

私のパスは私がオンラインで見つけることができましたポートの位置を含んでいます

... '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip', '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin', '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload', '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages', '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info', ... 

実際、/ opt/local/Library/Frameworksなどのパスに沿ってどこにでもインストールされているscipyファイルは見つかりません。

アイデア? MacPortsをインストールして1にはPythonの現在のバージョンを変更するには

答えて

3

sudo port select python python26

これは、インストールしscipyのダウンロードしているのPythonのMacPortsのバージョンを使用させてください。

0

macports.confの詳細については、すべての情報があります。いくつかの詳細については、man macports.confでもかまいません。

0

インストールしたPythonモジュールは、標準のOS XバージョンのPythonの検索パスにありません。 MacPortsを使ってPythonモジュールをインストールすると、独自のバージョンのPythonがインストールされます。あなたはselectコマンドを使用してMacPortのバージョンを使用して起動することができます:

sudo port select python python26 

別のオプションは、標準のPythonが

をeasy_installを使用して、それをインストールすることです
関連する問題