我需要python3.4和numpy的工作。我的分佈是薄荷18 python3.5是默認的Python版本。問題Python3.4安裝NumPy的,但python3.5是默認(薄荷
所以我安裝python3.4,但我無法導入模塊numpy的。我試着用pip
,但我讀了pip-3.4
不再工作,pip3
是沒有幫助的,因爲它關係到python3。
我試着使用sudo apt-get install python3.4-numpy
和終端響應:
Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig E: Paket python3.4-numpy kann nicht gefunden werden. E: Mittels des Musters »python3.4-numpy« konnte kein Paket gefunden werden. E: Mittels regulärem Ausdruck »python3.4-numpy« konnte kein Paket gefunden werden.
(裝置:E:包python3.4-numpy的無法找到或者類似的東西這一點)
然後我使用的別名命令alias python=python3.4
並用sudo apt-get install python-numpy
試過,但還沒有一個numpy的模塊在python3.4中的模塊列表中,而是在python2.7中。如果我使用sudo apt-get install python3-numpy
該模塊在python3.5中。我不想使用virtualenv
。你有什麼想法如何將模塊放入python3.4?
(很抱歉的編輯 - 我上傳到快的問題。)
您可以隨時使用[this](https:// pip。)引導pip。pypa.io/en/stable/installing/)有一些像你的3.4一樣的Python二進制文件。使用這個安裝的pip可以讓你安裝numpy,但是它會從源代碼構建(你需要爲系統做好準備;它全部寫在文檔中; scipy會更糟糕)。我不推薦使用它,但是由於anaconda-approach是更好的99.9%。您提供的每個信息都沒有理由不使用anaconda。相反:我得到的基本感受是你會受益匪淺。 – sascha