Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install -e . => mlagents-envs 0.8.1 has requirement Pillow<=5.4.1,>=4.2.1, but you'll have pillow 6.0.0 which is incompatible. #1982

Closed
juva opened this issue Apr 25, 2019 · 4 comments
Assignees

Comments

@juva
Copy link

juva commented Apr 25, 2019

E:\mobilework\ml-agents-master\ml-agents>mlagents-learn config/trainer_config.yaml --run-id=firstRun --train
Traceback (most recent call last):
File "d:\users\jhfeng\appdata\local\programs\python\python36\lib\site-packages\pkg_resources_init_.py", line 583, in build_master
ws.require(requires)
File "d:\users\jhfeng\appdata\local\programs\python\python36\lib\site-packages\pkg_resources_init
.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "d:\users\jhfeng\appdata\local\programs\python\python36\lib\site-packages\pkg_resources_init_.py", line 791, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (Pillow 6.0.0 (d:\users\jhfeng\appdata\local\programs\python\python36\lib\site-packages), Requirement.parse('Pillow<=5.4.1,>=4.2.1'), {'mlagents-envs'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Users\jhfeng\AppData\Local\Programs\Python\Python36\Scripts\mlagents-learn-script.py", line 6, in
from pkg_resources import load_entry_point
File "d:\users\jhfeng\appdata\local\programs\python\python36\lib\site-packages\pkg_resources_init_.py", line 3241, in
@call_aside
File "d:\users\jhfeng\appdata\local\programs\python\python36\lib\site-packages\pkg_resources_init
.py", line 3225, in call_aside
f(*args, **kwargs)
File "d:\users\jhfeng\appdata\local\programs\python\python36\lib\site-packages\pkg_resources_init
.py", line 3254, in _initialize_master_working_set
working_set = WorkingSet.build_master()
File "d:\users\jhfeng\appdata\local\programs\python\python36\lib\site-packages\pkg_resources_init
.py", line 585, in _build_master
return cls.build_from_requirements(requires)
File "d:\users\jhfeng\appdata\local\programs\python\python36\lib\site-packages\pkg_resources_init
.py", line 598, in build_from_requirements
dists = ws.resolve(reqs, Environment())
File "d:\users\jhfeng\appdata\local\programs\python\python36\lib\site-packages\pkg_resources_init
.py", line 791, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (Pillow 6.0.0 (d:\users\jhfeng\appdata\local\programs\python\python36\lib\site-packages), Requirement.parse('Pillow<=5.4.1,>=4.2.1'), {'mlagents-envs'})

E:\mobilework\ml-agents-master\ml-agents>

like #1939

@juva juva changed the title pip install -e . => mlagents-envs 0.8.0 has requirement Pillow<=5.4.1,>=4.2.1, but you'll have pillow 6.0.0 which is incompatible. pip install -e . => mlagents-envs 0.8.1 has requirement Pillow<=5.4.1,>=4.2.1, but you'll have pillow 6.0.0 which is incompatible. Apr 25, 2019
@Llain55
Copy link

Llain55 commented Apr 25, 2019

had this problem myself at one point. You'll have to uninstall your current version of pillow using
pip uninstall pillow
once it has uninstalled successfully reinstall using required version
pip install pillow==5.4.1

hopefully this works for you!

@harperj
Copy link
Contributor

harperj commented Apr 25, 2019

Hi @juva -- what @Llain55 said should work. You might also consider using a virtualenv so that ML-Agents dependencies can be managed separately from your global dependencies.

@harperj harperj self-assigned this Apr 25, 2019
@juva
Copy link
Author

juva commented Apr 26, 2019

@Llain55 @harperj
thanks,it really works!

@juva juva closed this as completed Apr 26, 2019
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants