|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
在学习Python课程安装scripy时安装到OpenSSL时就出现各种各样的问题,用pip install OpenSSL提示- SSLError: ('The read operation timed out',)
复制代码 ,按照百度的方法增加超时时间- pip --default-timeout=100 install OpenSSL
复制代码 ,又出现以下问题- Downloading/unpacking OpenSSL
- Cannot fetch index base URL https://pypi.python.org/simple/
- Could not find any downloads that satisfy the requirement OpenSSL
- Cleaning up...
- No distributions at all found for OpenSSL
- Storing debug log for failure in C:\Users\Administrator\pip\pip.log
复制代码 ,想请问一下有大神知道要怎样安装吗?
本帖最后由 suchocolate 于 2020-9-13 14:15 编辑
1.临时使用阿里云pip源:
- # cmd下
- python -m pip install OpenSSL -i https://mirrors.aliyun.com/pypi/simple
复制代码
2.永久使用阿里云pip源:
- 1)在你的家目录下新建pip文件夹:
- C:\Users\administrator\pip
- --------------------------------------------------------------------------------
- 2)新建文件:pip.ini,写入以下信息:
- --------------------------------------------------------------------------------
- [global]
- index-url = https://mirrors.aliyun.com/pypi/simple/
- [install]
- trusted-host=mirrors.aliyun.com
- --------------------------------------------------------------------------------
复制代码
|
|