我第一次嘗試從GitHub安裝某些東西,但在這裏和谷歌搜索後找不到簡單的解決方案。通過Jupyter筆記本從GitHub安裝模塊
我使用Jupyter筆記本電腦,並試圖安裝該模塊:
https://github.com/Expt-David/NumSchrodingerEq
我試着寫這裏面的筆記本:
!pip install git+git://github.com/Expt-David/NumSchrodingerEq.git
,但我發現了以下錯誤:
Collecting git+git://github.com/Expt-David/NumSchrodingerEq.git
Cloning git://github.com/Expt-David/NumSchrodingerEq.git to c:\users\greatg~1\appdata\local\temp\pip-1w_dpw43-build
Error [WinError 2] The system cannot find the file specified while executing command git clone -q git://github.com/Expt-David/NumSchrodingerEq.git C:\Users\GREATG~1\AppData\Local\Temp\pip-1w_dpw43-build
Cannot find command 'git'
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
ED IT
似乎再次和手動安裝混帳刪除路徑和編輯自己工作過這個問題,但現在我越來越:
Collecting git+https://github.com/Expt-David/NumSchrodingerEq.git
Cloning https://github.com/Expt-David/NumSchrodingerEq.git to c:\users\greatg~1\appdata\local\temp\pip-zpuki8tu-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "d:\anaconda3\lib\tokenize.py", line 454, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\GREATG~1\\AppData\\Local\\Temp\\pip-zpuki8tu-build\\setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\GREATG~1\AppData\Local\Temp\pip-zpuki8tu-build\
而且我已經安裝和更新setuptools的。
我在做什麼錯?
謝謝!
你的系統上沒有安裝git。安裝git。錯誤是指定它:'無法找到命令'git'' – idjaw
在您的系統上安裝命中,如果已經將其添加到路徑 –
我安裝了git桌面(用於Windows),但仍然出現該錯誤。我應該將它導入筆記本嗎? – ValientProcess