Reputation: 871
I've got an error following:
MacBook-Air:Firebase takeyuki$ python -m pip install --upgrade firebase-admin
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
... some lines are omitted ...
Installing collected packages: futures, googleapis-common-protos, grpcio, google-api-core, uritemplate, httplib2, google-auth-httplib2, google-api-python-client, google-cloud-core, google-resumable-media, google-cloud-storage, google-cloud-firestore, msgpack, cachecontrol, firebase-admin
Found existing installation: futures 3.0.3
Cannot uninstall 'futures'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
This message mentions futures module seems not to belong to pip, but
MacBook-Air:Firebase takeyuki$ python -m pip list | grep futures
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
futures 3.0.3
So, how can I fix it? Thank you for your suggestion!
Upvotes: 0
Views: 4299
Reputation: 1
i ran into a similar problem. when i installed firebase_admin 5.4.0 on Thonny IDE, everything worked fine. so to install it on your machine, just rollback to that version. i used sudo pip3 install firbase_admin==5.4.0
Upvotes: 0
Reputation: 14759
Could you try the following steps?
pip install --upgrade --force-reinstall pip==20.0.0
pip install futures --disable-pip-version-check
pip install --upgrade pip
Another option is to work in a virtualenv:
pip install virtualenv
virtualenv -p python venv
source venv/bin/activate
python pip install firebase-admin
Update: the option that did actually work:
pip install --ignore-installed futures
Upvotes: 3