搜尋此網誌

[Python] No module named 'numpy'

需要安裝numpy套件,在cmd輸入以下指令(請自行修改pip.exe實際所在位置)

C:\Users\MH>cd C:\Users\MH\AppData\Local\Programs\Python\Python311\Scripts
pip install numpy

C:\Users\MH>cd C:\Users\minghang.du\AppData\Local\Programs\Python\Python311\Scripts

C:\Users\MH\AppData\Local\Programs\Python\Python311\Scripts>pip install numpy
Collecting numpy
Using cached numpy-1.25.1-cp311-cp311-win_amd64.whl (15.0 MB)
Installing collected packages: numpy
WARNING: The script f2py.exe is installed in 'C:\Users\MH\AppData\Local\Programs\Python\Python311\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed numpy-1.25.1

沒有留言:

張貼留言