我有這個 conda yml 檔案用于安裝依賴項和創建新的 conda env。
conda_env.yml從https://github.com/MishaLaskin/rad分叉:
name: rad
channels:
- defaults
dependencies:
- python=3.6
- pytorch
- torchvision
- cudatoolkit=9.2
- absl-py
- pyparsing
- pillow=6.1
- pip:
- termcolor
- git git://github.com/deepmind/dm_control.git
- git git://github.com/1nadequacy/dmc2gym.git
- tb-nightly
- imageio
- imageio-ffmpeg
- torchvision
- scikit-image
- tabulate
我嘗試運行conda env create --file conda_env.yml,這是我得到的堆疊跟蹤。
Collecting package metadata (repodata.json): done
Solving environment: done
Installing pip dependencies: - Ran pip subprocess with arguments:
['/home/dyung6/anaconda3/envs/rad/bin/python', '-m', 'pip', 'install', '-U', '-r', '/home/dyung6/rad/condaenv.835gcx7g.requirements.txt']
Pip subprocess output:
Collecting git git://github.com/deepmind/dm_control.git (from -r /home/dyung6/rad/condaenv.835gcx7g.requirements.txt (line 2))
Cloning git://github.com/deepmind/dm_control.git to /tmp/pip-req-build-nc4w5hv8
Pip subprocess error:
Running command git clone -q git://github.com/deepmind/dm_control.git /tmp/pip-req-build-nc4w5hv8
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
WARNING: Discarding git git://github.com/deepmind/dm_control.git. Command errored out with exit status 128: git clone -q git://github.com/deepmind/dm_control.git /tmp/pip-req-build-nc4w5hv8 Check the logs for full command output.
ERROR: Command errored out with exit status 128: git clone -q git://github.com/deepmind/dm_control.git /tmp/pip-req-build-nc4w5hv8 Check the logs for full command output.
failed
CondaEnvException: Pip failed
似乎新的 git 政策阻止你這樣做。有沒有辦法解決?
uj5u.com熱心網友回復:
正如@torek 所指出的,并且錯誤訊息中指向的檔案解釋說,該git://協議已在 GitHub 上逐步淘汰。切換到 using https://,即在這種情況下:
- pip:
- git https://github.com/deepmind/dm_control.git
- git https://github.com/1nadequacy/dmc2gym.git
...
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/456835.html
上一篇:Firebase如何獲取當前用戶
下一篇:GitHub操作的作業流檔案無效
