python3.6.8 配置报错:
# pip3 config set global.index-url https://repo.huaweicloud.com/repository/pypi/simple
ERROR: unknown command "config"
# pip3 config set install.trusted-host repo.huaweicloud.com
ERROR: unknown command "config"
解决方案
# mkdir -p ~/.config/pip/
# touch ~/.config/pip/pip.conf
# vi ~/.config/pip/pip.conf
# cat ~/.config/pip/pip.conf
[global]
index-url = https://repo.huaweicloud.com/repository/pypi/simple
trusted-host = repo.huaweicloud.com
timeout = 120