重新整理: windows下 pip is configured with locations that require TLS/SSL, however the ssl module in P...

原因依然和之前的文章一样. openssl 没有安装

https://www.jianshu.com/p/e19c5fc29fde

总体来说,首先看环境变量有没有配置好:
C:\ProgramData\Anaconda3\Scripts
C:\ProgramData\Anaconda3
C:\ProgramData\Anaconda3\Scripts\bin
首先,这个有一个小地方值得注意,就是Anaconda3自动安装完成后,C:\ProgramData\Anaconda3\Scripts\bin这个目录是没有的,并且如果进文件浏览器打话,的确是没有这个目录的. 如果这个目录没添加到path的话,似乎会出现 python --version不能被识别的错误, 虽然在vscode编辑器里是没什么问题

然后就是,一定要下载正确版本的openssl: 链接如下

https://slproweb.com/products/Win32OpenSSL.html
如果edge报这个网站ssl证书过期的话,请用Firefox打开

安装好了,把openssl添加到path中应该就可以了.

就可以用命令安装了
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow

你可能感兴趣的:(重新整理: windows下 pip is configured with locations that require TLS/SSL, however the ssl module in P...)