問題描述
我有一個與這個問題非常相似的問題.我的 Windows 7 64 位系統上只安裝了一個版本的 python 3.5.我通過官方網站安裝了 Anaconda3.4 - 正如問題中所建議的那樣.安裝很順利,但是當我想導入時(我只是從命令行輸入 python)
I have a very similar question to this question. I have only one version of python 3.5 installed on my Windows 7 64-bit system. I installed Anaconda3.4 via official website - as suggested in the question. The installation went fine but when I want to import(I just typing python from the command line )
import numpy
Import error:No module named numpy
然后我退出并輸入
pip install numpy
要求已經滿足(使用--upgrade 升級):numpy in d:program filesanaconda3libsite-packages
Requirement already satisfied (use --upgrade to upgrade): numpy in d:program fi lesanaconda3libsite-packages
我知道這可能是一個超級基本的問題,但我仍在學習...謝謝
I know this is probably a super basic question, but I'm still learning... Thanks
推薦答案
如果您使用的是 Anaconda3,那么您應該已經安裝了 numpy.沒有理由使用 pip
.我的猜測是 Anaconda 發行版可能不在您的路徑上,而您正在選擇其他系統 python.
If you are using Anaconda3 then you should already have numpy installed. There is no reason to use pip
. My guess is that the Anaconda distribution is possibly not on your path and you are picking up some other system python.
您應該運行 where python
(或 where python3
)來查看您使用的是哪一個.如果可執行文件不在 Anaconda 安裝中,那么這是您的問題,您需要編輯路徑環境變量以確保打開所需的 python.
You should run where python
(or where python3
) to see which one you are using. If the executable is not in the Anaconda install, then that is your problem and you will need to edit your path environment variable to ensure that you are opening the python you want.
這篇關于導入錯誤:沒有名為 numpy Anaconda 的模塊的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!