环境:Windows 7 SP1
提示:ssl module in Python is not available.
解决办法:
安装Choco
浏览器访问 https://chocolatey.org
根据说明,管理员权限打开cmd窗口,执行命令安装Choco
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command “iex ((New-Object System.Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1’))” && SET “PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin”
命令行安装openssl-light,根据提示重新启动Windows
choco install openssl-light
启动PyCharm,再次创建Django项目,OK啦