python - 我无法安装 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.
此消息提到期货模块似乎不属于 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
推荐阅读
- mysql - SQL:选择其他表中不存在的位置
- c - 如何修复这个比较字符串(来自 argv 和 scanf)程序?
- c++ - 如何计算一个数字在数组中出现的次数
- java - 如何在同一 Tomcat 8 服务器上运行的 Java 应用程序中使用 ColdFusion 会话?
- python - 在python中删除字符串中的反斜杠
- python - 每次删除排名最低的特征时运行递归特征提取多次迭代的代码
- haskell - Haskell 中的并行和并发编程 - 异步 对同步进行去糖吗?
- dll - “找不到入口点”错误
- typescript - Typescript 3.3 不再从 d.ts 文件中获取我的函数的类型
- python - 如何在二十一点游戏中打印手中的价值