前提
Pythonでrex-gymというパッケージを使用したいと考えています。(https://github.com/nicrusso7/rex-gym)
このページのreadmeに従ってインストールを進めたところ、インストールをするときにpipの依存関係の影響でエラーを出力し、インストールが正常に行われませんでした。
実現したいこと
- rex-gymパッケージを正常にインストールする
試したこと
- PyPIからではなくソースコードからインストールしてみる(
pip install .
) --no-dependencies
オプションをつけて依存関係を無視してインストールしてみる
発生している問題・エラーメッセージ
そのままpip install rex_gym
でインストールしたとき
error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Traceback (most recent call last): File "<string>", line 36, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "C:\Users\Username\AppData\Local\Temp\pip-install-vh8p3fc9\rex-gym_5d0e80ec6dd644698cc627bbd91a95b8\setup.py", line 14, in <module> with open(os.path.join(this_directory, 'requirements.txt'), encoding='utf-8') as f: FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Username\\AppData\\Local\\Temp\\pip-install-vh8p3fc9\\rex-gym_5d0e80ec6dd644698cc627bbd91a95b8\\requirements.txt' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
ソースコードから直接インストールしたとき(pip install .
)
ERROR: Cannot install rex-gym because these package versions have conflicting dependencies. The conflict is caused by: gym 0.17.1 depends on cloudpickle<1.4.0 and >=1.2.0 tensorflow-probability 0.8.0 depends on cloudpickle==1.1.1 To fix this you could try to: 1. loosen the range of package versions you've specified 2. remove package versions to allow pip attempt to solve the dependency conflict ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
さらにオプションを追加してpip install --no-dependencies .
を実行したときには、インストール時にはエラーは出ませんが、そのほかのrex-gymに必要なパッケージ(gymなど)が導入されません。
該当のソースコード
https://github.com/nicrusso7/rex-gym
補足情報(FW/ツールのバージョンなど)
Windows 11 Home(OSBuild:22621.674)
conda (22.9.0)
python3.7
あなたの回答
tips
プレビュー