背景
报错信息:Collecting pexpect
Could not fetch URL https://pypi.python.org/simple/pexpect/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618) - skipping
Could not find a version that satisfies the requirement pexpect (from versions: )
No matching distribution found for pexpect
一、步骤
1.python和pip命令联合解决
python -m pip install pexpect --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org