文档首页>
Atlas 200 DK 开发者套件(1.0.7.alpha)>
使用指南>
FAQ>
使用pip3.7.5 install软件时提示" Could not find a version that satisfies the requirement xxx"
更新时间:2021-10-26 GMT+08:00
使用pip3.7.5 install软件时提示" Could not find a version that satisfies the requirement xxx"
问题描述
安装依赖时,使用pip3.7.5 install xxx命令安装相关软件时提示无法连接网络,且提示“Could not find a version that satisfies the requirement xxx",提示信息如所示。
图1 使用pip3安装软件提示信息


可能原因
没有配置pip源。
解决方法
配置pip源,配置方法如下:
- 使用软件包的安装用户,执行如下命令:
cd ~/.pip
如果提示目录不存在,则执行如下命令创建:
mkdir ~/.pip cd ~/.pip
在.pip目录下创建pip.conf 文件,命令为:
touch pip.conf
- 编辑pip.conf文件。
使用vi pip.conf命令打开pip.conf文件,写入如下内容:
[install] #可信主机,请根据实际情况进行替换。 trusted-host=cmc-cd-mirror.rnd.huawei.com [global] #可用的源,请根据实际情况进行替换。 index-url=http://cmc-cd-mirror.rnd.huawei.com/pypi/simple/
- 执行:wq!命令保存文件。
父主题: FAQ
