close

最近遇到 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

 

pip Configuration

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 JohnDX 的頭像
    JohnDX

    我要回家想一想~

    JohnDX 發表在 痞客邦 留言(0) 人氣()