FedML icon indicating copy to clipboard operation
FedML copied to clipboard

Unable to run pip install -r requirements.txt

Open xlw686 opened this issue 3 years ago • 3 comments

I am experimenting with the install below

Run the following shell and dump the arguments to get.

# Install other required package
pip install -r requirements.txt

This seems to be the wrong.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
elastic-transport 8.1.1 requires urllib3<2,>=1.26.2, but you have urllib3 1.25.11 which is incompatible.
Successfully installed Celery-5.2.2 Jinja2-3.1.1 MarkupSafe-2.1.1 Werkzeug-2.1.1 amqp-5.1.1 billiard-3.6.4.0 boto3-1.18.21 botocore-1.21.65 certifi-2020.6.20 chardet-3.0.4 click-didyoumean-0.3.0 click-plugins-1.1.1 click-repl-0.2.0 configparser-5.2.0 dill-0.3.3 et-xmlfile-1.0.1 flask-1.1.2 gevent-20.6.2 greenlet-1.1.2 grpcio-1.45.0 grpcio-tools-1.45.0 gunicorn-20.0.4 idna-2.10 itsdangerous-2.1.2 jdcal-1.4.1 jmespath-0.10.0 kombu-5.2.4 loguru-0.5.3 paho-mqtt-1.5.0 prompt-toolkit-3.0.29 pynvml-11.4.1 requests-2.24.0 ruamel.yaml-0.16.10 ruamel.yaml.clib-0.2.0 s3transfer-0.5.2 subprocess32-3.5.4 termcolor-1.1.0 urllib3-1.25.11 vine-5.0.0 wandb-0.12.9 wcwidth-0.2.5 yaspin-2.1.0 zope.event-4.5.0 zope.interface-5.4.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
(fedml) root@VM-24-3-ubuntu:~/share/FedML# 


xlw686 avatar Apr 17 '22 11:04 xlw686

I ran into the same error.

Try updating the dependencies in the following shells.

sed -i -e 's/requests==2\.24\.0/requests==2\.27\.1/' requirements.txt
sed -i -e 's/^urllib3==1\.26\.5/# urllib3==1\.26\.5/' requirements.txt

sasano8 avatar Apr 17 '22 20:04 sasano8

@xlw686 thanks for your feedback. We will release new FedML v0.9.0 late this week. Please PR once you resolved this issue.

chaoyanghe avatar Apr 18 '22 16:04 chaoyanghe

Now I can pip install -r requirements.txt by using

I ran into the same error.

Try updating the dependencies in the following shells.

sed -i -e 's/requests==2\.24\.0/requests==2\.27\.1/' requirements.txt
sed -i -e 's/^urllib3==1\.26\.5/# urllib3==1\.26\.5/' requirements.txt

Thank you both very much

xlw686 avatar Apr 19 '22 12:04 xlw686