[root@localhost dashboard]# ./env/bin/pip install -r pip_requirements.txt Downloading/unpacking Flask==0.10.1 (from -r pip_requirements.txt (line 1)) Could not fetch URL https://pypi.python.org/simple/Flask/: There was a problem confirming the ssl certificate: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)> Will skip URL https://pypi.python.org/simple/Flask/ when looking for download links for Flask==0.10.1 (from -r pip_requirements.txt (line 1)) Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl certificate: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)> Will skip URL https://pypi.python.org/simple/ when looking for download links for Flask==0.10.1 (from -r pip_requirements.txt (line 1)) Cannot fetch index base URL https://pypi.python.org/simple/ Could not fetch URL https://pypi.python.org/simple/Flask/0.10.1: There was a problem confirming the ssl certificate: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)> Will skip URL https://pypi.python.org/simple/Flask/0.10.1 when looking for download links for Flask==0.10.1 (from -r pip_requirements.txt (line 1))
解决办法:
[root@localhost dashboard]# ./env/bin/pip install -r pip_requirements.txt -i http://pypi.doubanio.com/simple Downloading/unpacking Flask==0.10.1 (from -r pip_requirements.txt (line 1)) Downloading Flask-0.10.1.tar.gz (544kB): 544kB downloaded Running setup.py egg_info for package Flask