2013-06-03 57 views
1

我已經嘗試了很多方法讓scipy和python3.2玩好,但沒有喜悅。Ubuntu的scipy適用於python2.7,但不適用於3.2

我曾嘗試:

sudo apt-get build-dep scipy 

沒有喜悅

sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose 

和仍然沒有喜悅

的目標是讓SciPy的發揮好與IPython中運行python3 0.2。

這裏是終端輸出。 http://pastebin.com/LkPZUSAX

幫助/協助表示讚賞。

回答

1

嘗試:

sudo apt-get install python32-numpy 

,如果你有你的系統裏安裝了Python的多個版本,那麼你必須指定要安裝該庫的版本..

,你也可以做

python --version 

檢查默認的Python爲你的系統

+0

上述嘗試:sudo易於得到安裝python32-numpy的消息:無法找到目前包python32-numpy的運行:$ python3.2 的Python 3.2.3(默認情況下,2012年10月19日,20點10分41秒) [ GCC 4.6.3] on linux2 請輸入「help」,「copyright」,「credits」或「license」以獲取更多信息。 >>>進口numpy >>> numpy.version.version '1.7.0'這是scipy我試圖去工作。 >>> import scipy Traceback(最近調用最後一個): 文件「」,第1行,在 ImportError:沒有名爲scipy的模塊我歡迎進一步的建議修復。 – pleabargain

+3

我的不好... 'sudo apt-get install python3-numpy python3-scipy' http://www.andrewsturges.com/2012/05/installing-numpy-16-for-python-3-in。 html – abhishekgarg

+0

您可以使用packages.ubuntu.com檢查軟件包名稱[像這樣](http://packages.ubuntu.com/search?keywords=numpy&searchon=names&suite=raring§ion=all)。 –

0

嘗試運行命令

sudo apt-get install python3.2-numpy 

改爲。

運行命令

sudo apt-get install python-numpy 

安裝了python2.7被默認在我的情況。

所以你必須在apt-get命令中指定python版本。

相關問題