这是我第一次尝试从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.
编辑
看起来重新安装 git 并手动删除路径并自己编辑已解决该问题,但现在我遇到了以下问题:
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'
。 - idjaw