Im学習Python。git.exc.GitCommandNotFound:[WinError 5]アクセスが拒否されました
GitPythonがインストールされている
Traceback (most recent call last):
File "C:\Users\Selvakumar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\git\cmd.py", line 622, in execute
**subprocess_kwargs
File "C:\Users\Selvakumar\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 969, in __init__
restore_signals, start_new_session)
File "C:\Users\Selvakumar\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 1249, in _execute_child
startupinfo)
PermissionError: [WinError 5] Access is denied
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "config_console.py", line 2185, in <module>
command_line = ConfigCommandLine()
File "config_console.py", line 87, in __init__
g.clone('[email protected]:Modria/Ecomm_GM.git')
File "C:\Users\Selvakumar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\git\cmd.py", line 463, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "C:\Users\Selvakumar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\git\cmd.py", line 905, in _call_process
return self.execute(make_call(), **_kwargs)
File "C:\Users\Selvakumar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\git\cmd.py", line 625, in execute
raise GitCommandNotFound(str(err))
git.exc.GitCommandNotFound: [WinError 5] Access is denied
リポジトリのクローンを作成しようとしているときに例外の下に取得。 sshのキーは、C:\ Users \ Selvakumar.sshで利用でき、git bashからクローンを作成するときに動作します。しかし、Pythonと同じではありません。 sshキーはパスワードなしで生成されることに注意してください。私はそれ
pythonプログラムが 'HOME'が' USERPROFILE'に設定されている環境で動作することを確認できますか? 'HOME =%USERPROFILE%'を設定してください。あなたのpythonプログラムを呼び出します(git bashではなく、レギュラムCMDセッションから)。 – VonC
同じエラーが発生します。私は環境変数にHOMEを設定し、CMDから実行します(すでに行っていた) –
あなたのPATHはgitバイナリを参照していますか? – VonC