2017-11-25 280 views
0

重新安裝anaconda後,我使用此命令行得到此信息。這是爲什麼?重新安裝anaconda後,我無法安裝theano

pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git 

(C:\Users\AM\Anaconda3) C:\Users\AM\Documents>pip install --upgrade --no- 
deps git+git://github.com/Theano/Theano.git 
Collecting git+git://github.com/Theano/Theano.git 
    Cloning git://github.com/Theano/Theano.git to c:\users\am\appdata\local\temp\p 
ip-273x97zk-build 
    Error [WinError 2] The system cannot find the file specified while 
executing command git clone -q git://github.com/Theano/Theano.git C:\Users\AM\AppData\Local 
\Temp\pip-273x97zk-build 
Cannot find command 'git' 

此外,有什麼區別

之間

pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git 

&

pip install git+git://github.com/Theano/Theano.git 
我不知道該用哪一個,如此混亂。

我正在運行python 3.6,我必須降級到3.5嗎?

謝謝。

回答

0

輸出的錯誤是:

Cannot find command 'git' 

安裝的git(我認爲有一個Windows PowerShell中的Git),並嘗試後

+0

它可以運行該命令。謝謝!順便說一下,這個git的東西是什麼?我不認爲我之前安裝過它,但它以某種方式工作。太奇怪了... – yomoko