簡體   English   中英

我無法安裝 install firebase-admin

[英]I can't install install firebase-admin

我有以下錯誤:

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.

這個消息提到futures模塊似乎不屬於pip,但是

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     

那么,我該如何解決呢? 謝謝你的建議!

您可以嘗試以下步驟嗎?

pip install --upgrade --force-reinstall pip==20.0.0
pip install futures --disable-pip-version-check
pip install --upgrade pip

另一種選擇是在 virtualenv 中工作:

pip install virtualenv
virtualenv -p python venv
source venv/bin/activate
python pip install firebase-admin

更新:確實有效的選項:

pip install --ignore-installed futures

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM