0
我想在Python 3中使用WinPy發行版運行numpy。我把#!python3放在腳本的頂部,因爲我被告知這是Winpy允許你在特定版本中運行的東西。如果我在shell(Eclipse中),它工作正常,但運行腳本,當我嘗試從控制檯運行它,我得到這個錯誤:在Python3中找不到Numpy
Traceback (most recent call last):
File "C:\Users\Dax\workspace\Python3\TestofPython3.py", line 9, in <module>
import numpy
ImportError: No module named 'numpy'
如果我不把在那個的頂部該腳本,它運行numpy罰款,直到它'輸入()'。它可以在帶或不帶#!python3的shell中工作。
你試過了嗎? \ scripts \ pip install numpy'? –
聽起來你已經爲python 2安裝了numpy,但不是python 3.另外,python 2使用'raw_input()'而不是'input()'。 –