본문 바로가기
개발/에러해결

Unity ML-Agents window anaconda pip install 시 ERROR: Ignored the following versions that require a different python version 와 ERROR: No matching distribution found for mlagents_envs==0.31.0.dev0

by amkorousagi 2023. 4. 21.

ERROR: Ignored the following versions that require a different python version ERROR: No matching distribution found for mlagents_envs==0.31.0.dev0

 

ERROR: Ignored the following versions that require a different python version

ERROR: No matching distribution found for mlagents_envs==0.31.0.dev0

 

Unity ML-Agents window pip install 에러 내용


ERROR: Ignored the following versions that require a different python version: 0.10.0.dev0 Requires-Python >=3.5,<3.8; 0.6.0 Requires-Python >=3.5,<=3.7; 0.6.1 Requires-Python >=3.5,<=3.7; 0.6.2 Requires-Python >=3.5,<=3.7; 0.8.0 Requires-Python >=3.5,<3.8; 0.8.1 Requires-Python >=3.5,<3.8; 0.8.2 Requires-Python >=3.5,<3.8; 0.9.0 Requires-Python >=3.5,<3.8; 0.9.1 Requires-Python >=3.5,<3.8; 0.9.2 Requires-Python >=3.5,<3.8; 0.9.3 Requires-Python >=3.5,<3.8 ERROR: Could not find a version that satisfies the requirement mlagents_envs==0.31.0.dev0 (from mlagents) (from versions: 0.10.0.dev1, 0.10.0, 0.10.1, 0.11.0.dev0, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.17.0, 0.18.0, 0.18.1, 0.19.0, 0.20.0, 0.21.0, 0.21.1, 0.22.0, 0.23.0, 0.24.0, 0.24.1, 0.25.0, 0.25.1, 0.26.0, 0.27.0, 0.28.0, 0.29.0, 0.30.0) ERROR: No matching distribution found for mlagents_envs==0.31.0.dev0

Unity ML-Agents를 window의 anaconda3에서 설치하려는 도중 pip install -e . 를 하자 위와 같은 오류가 발생했다.

 

Unity ML-Agents window pip install 에러 원인


1. default branch 가 develop 이기 때문이다.

default branch is develop

 

 

2. 요구하는 파이썬 버전이 다르기 때문이다.

 

Unity ML-Agents window pip install 해결 방법


1. 그냥 git clone하면 기본 branch인 develop으로 설정되기 때문에 다음과 같이 branch를 지정해 주자.

 

git clone -b latest_release https://github.com/Unity-Technologies/ml-agents.git

 

2. 에러에 적힌 내용대로 파이썬 버전도 맞추자. github의 installation.md를 참고하면 3.8.13 이상이라고 적혀있다.

conda create -n py39 python=3.9
activate py39

 

 

Unity ML-Agents window pip install 결과 화면


cuda나 pytorch가 안깔려있다면 깔고, protobuf 버전도 낮추면 다음과 같은 화면이 뜬다.

설치 성공

 

참고 자료


 

 

GitHub - Unity-Technologies/ml-agents: The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enab

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement ...

github.com

 

 

No matching distribution found for mlagents_envs

I was trying to install ml-agents into anaconda. I get following error on Anaconda Prompt: ERROR: Could not find a version that satisfies the requirement mlagents_envs==0.15.0.dev0 (from mlagent...

stackoverflow.com

 

댓글