最近遇到 pip install 的問題
Ignoring indexes: https://pypi.python.org/simple
Collecting config==0.3.9 (from -r /root/requirements.txt (line 1))
The repository located at x.x.x.x is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host x.x.x.x'.
The repository located at x.x.x.x is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host x.x.x.x'.
Could not find a version that satisfies the requirement config==0.3.9 (from -r /root/requirements.txt (line 1)) (from versions: )
No matching distribution found for config==0.3.9 (from -r /root/requirements.txt (line 1))
後來發現要照他說的加入 trusted host 才行
export PIP_TRUSTED_HOST=x.x.x.x
Python packaging - Pip trusted host issues
留言列表