iclavera / learning_to_adapt

Learning to Adapt in Dynamic, Real-World Environment through Meta-Reinforcement Learning
208 stars 49 forks source link

pip error installing creating conda environment #15

Open ildefons opened 3 years ago

ildefons commented 3 years ago

Dear Ignasi,

Could you take a look to this pip error when creating the conda environment (step B):

conda env create -f docker/environment.yml Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you. Collecting package metadata (repodata.json): done Solving environment: done

==> WARNING: A newer version of conda exists. <== current version: 4.9.2 latest version: 4.10.1

Please update conda by running

$ conda update -n base -c defaults conda

Downloading and Extracting Packages sqlite-3.35.4 | 981 KB | ########################################################### | 100% ca-certificates-2021 | 114 KB | ########################################################### | 100% patchelf-0.12 | 88 KB | ########################################################### | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done Installing pip dependencies: | Ran pip subprocess with arguments: ['/home/ildefons/anaconda3/envs/learning_to_adapt/bin/python', '-m', 'pip', 'install', '-U', '-r', '/home/ildefons/iclavera/learning_to_adapt/docker/condaenv.t5boss7i.requirements.txt'] Pip subprocess output: Collecting bleach==1.5.0 Downloading bleach-1.5.0-py2.py3-none-any.whl (17 kB) Collecting boto3==1.8.9 Downloading boto3-1.8.9-py2.py3-none-any.whl (128 kB) Collecting botocore==1.9 Downloading botocore-1.9.0-py2.py3-none-any.whl (4.1 MB) Collecting cffi==1.11.5 Downloading cffi-1.11.5-cp36-cp36m-manylinux1_x86_64.whl (421 kB) Collecting chardet==3.0.4 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB) Collecting click==6.7 Downloading click-6.7-py2.py3-none-any.whl (71 kB) Collecting cloudpickle==0.6.1 Downloading cloudpickle-0.6.1-py2.py3-none-any.whl (14 kB) Collecting cycler==0.10.0 Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB) Collecting Cython==0.28.5 Downloading Cython-0.28.5-cp36-cp36m-manylinux1_x86_64.whl (3.4 MB) Collecting decorator==4.3.0 Downloading decorator-4.3.0-py2.py3-none-any.whl (9.2 kB) Collecting docutils==0.14 Downloading docutils-0.14-py3-none-any.whl (543 kB) Collecting enum34==1.1.6 Downloading enum34-1.1.6-py3-none-any.whl (12 kB) Collecting Flask==1.0.2 Downloading Flask-1.0.2-py2.py3-none-any.whl (91 kB) Collecting future==0.16.0 Downloading future-0.16.0.tar.gz (824 kB) Collecting glfw==1.7.0 Downloading glfw-1.7.0.tar.gz (19 kB) Collecting gym==0.7.4 Downloading gym-0.7.4.tar.gz (152 kB) Collecting html5lib==0.9999999 Downloading html5lib-0.9999999.tar.gz (889 kB) Collecting idna==2.7 Downloading idna-2.7-py2.py3-none-any.whl (58 kB) Collecting imageio==2.4.1 Downloading imageio-2.4.1.tar.gz (3.3 MB) Collecting ipython-genutils==0.2.0 Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB) Collecting itsdangerous==0.24 Downloading itsdangerous-0.24.tar.gz (46 kB) Collecting Jinja2==2.10 Downloading Jinja2-2.10-py2.py3-none-any.whl (126 kB) Collecting jmespath==0.9.3 Downloading jmespath-0.9.3-py2.py3-none-any.whl (23 kB) Collecting joblib==0.12.4 Downloading joblib-0.12.4-py2.py3-none-any.whl (272 kB) Collecting jsonschema==2.6.0 Downloading jsonschema-2.6.0-py2.py3-none-any.whl (39 kB) Collecting kiwisolver==1.0.1 Downloading kiwisolver-1.0.1-cp36-cp36m-manylinux1_x86_64.whl (949 kB) Collecting matplotlib==2.2.3 Downloading matplotlib-2.2.3-cp36-cp36m-manylinux1_x86_64.whl (12.6 MB) Collecting moviepy==0.2.3.5 Downloading moviepy-0.2.3.5.tar.gz (372 kB) Collecting mpi4py==3.0.0 Downloading mpi4py-3.0.0.tar.gz (1.4 MB) Collecting mujoco-py==0.5.7 Downloading mujoco-py-0.5.7.tar.gz (37 kB) Collecting nbformat==4.4.0 Downloading nbformat-4.4.0-py2.py3-none-any.whl (155 kB) Collecting nose==1.3.7 Downloading nose-1.3.7-py3-none-any.whl (154 kB) Collecting numpy==1.15.1 Downloading numpy-1.15.1-cp36-cp36m-manylinux1_x86_64.whl (13.9 MB) Collecting Pillow==5.2.0 Downloading Pillow-5.2.0-cp36-cp36m-manylinux1_x86_64.whl (2.0 MB) Collecting pip==10.0.1 Downloading pip-10.0.1-py2.py3-none-any.whl (1.3 MB) Collecting plotly==3.2.0 Downloading plotly-3.2.0-py2.py3-none-any.whl (37.0 MB) Collecting protobuf==3.6.1 Downloading protobuf-3.6.1-cp36-cp36m-manylinux1_x86_64.whl (1.1 MB) Collecting pycparser==2.18 Downloading pycparser-2.18.tar.gz (245 kB) Collecting pyglet==1.3.2 Downloading pyglet-1.3.2-py2.py3-none-any.whl (1.0 MB) Collecting PyOpenGL==3.1.0 Downloading PyOpenGL-3.1.0.zip (2.2 MB) Collecting pyparsing==2.2.0 Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56 kB) Collecting PyPrind==2.11.2 Downloading PyPrind-2.11.2-py3-none-any.whl (8.6 kB) Collecting pyquaternion==0.9.2 Downloading pyquaternion-0.9.2.tar.gz (13 kB) Collecting python-dateutil==2.7.3 Downloading python_dateutil-2.7.3-py2.py3-none-any.whl (211 kB) Collecting pytz==2018.5 Downloading pytz-2018.5-py2.py3-none-any.whl (510 kB) Collecting requests==2.19.1 Downloading requests-2.19.1-py2.py3-none-any.whl (91 kB) Collecting retrying==1.3.3 Downloading retrying-1.3.3.tar.gz (10 kB) Collecting s3transfer==0.1.13 Downloading s3transfer-0.1.13-py2.py3-none-any.whl (59 kB) Collecting scipy==1.1.0 Downloading scipy-1.1.0-cp36-cp36m-manylinux1_x86_64.whl (31.2 MB) Collecting setuptools==40.2.0 Downloading setuptools-40.2.0-py2.py3-none-any.whl (568 kB) Collecting six==1.11.0 Downloading six-1.11.0-py2.py3-none-any.whl (10 kB) Collecting tensorflow==1.13.1 Downloading tensorflow-1.13.1-cp36-cp36m-manylinux1_x86_64.whl (92.5 MB) Collecting tensorflow-tensorboard==0.4.0 Downloading tensorflow_tensorboard-0.4.0-py3-none-any.whl (1.7 MB) Collecting tqdm==4.25.0 Downloading tqdm-4.25.0-py2.py3-none-any.whl (43 kB) Collecting traitlets==4.3.2 Downloading traitlets-4.3.2-py2.py3-none-any.whl (74 kB) Collecting urllib3==1.23 Downloading urllib3-1.23-py2.py3-none-any.whl (133 kB) Collecting Werkzeug==0.14.1 Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322 kB) Collecting wheel==0.31.1 Downloading wheel-0.31.1-py2.py3-none-any.whl (41 kB) INFO: pip is looking at multiple versions of bleach to determine which version is compatible with other requirements. This could take a while.

The conflict is caused by: The user requested botocore==1.9 boto3 1.8.9 depends on botocore<1.12.0 and >=1.11.9

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

Pip subprocess error: ERROR: Cannot install -r /home/ildefons/iclavera/learning_to_adapt/docker/condaenv.t5boss7i.requirements.txt (line 2) and botocore==1.9 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

failed

CondaEnvException: Pip failed

ildefons commented 3 years ago

Changing botocore==1.9 for botocore==1.11.9 in environment.yml seems to solved the issue.

Is this a correct fix?