报错内容:
ValueError: Trusted host URL must include a host part: ‘#‘
通过修改pip的配置文件解决
pip配置文件在用户目录下
修改前的pip配置文件:
1 [global]
2 index-url = https://pypi.tuna.tsinghua.edu.cn/simple
3 [install]
4 trusted-host = https://pypi.tuna.tsinghua.edu.cn # trusted-host 此参数是为了避免麻烦,否则使用的
修改后解决:
1 [global]
2 index-url = https://pypi.tuna.tsinghua.edu.cn/simple
3 [install]
4 trusted-host = https://pypi.tuna.tsinghua.edu.cn