报错pip’s dependency resolver does not currently take into account all the packages that are installed

安装pip tensorflow

pip install  --upgrade tensorflow  -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

报错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.
conda-repo-cli 1.0.4 requires pathlib, which is not installed.
anaconda-project 0.10.2 requires ruamel-yaml, which is not installed.

截图如下

解决方案

对报错提示中which is not installed的库进行安装

在我这里是要安装pathlib库、ruamel-yaml库

pip install  --upgrade pathlib  -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install  --upgrade ruamel-yaml  -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

最后安装tensorflow库

pip install  --upgrade tensorflow  -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

猜你喜欢

转载自blog.csdn.net/weixin_46159962/article/details/127910186
今日推荐