ssl module in python is not available Windows 7

2019-06-24 05:40发布

问题:

I have Python 3.7.1 installed on Windows 7 from www.python.org. When I want to "pip install pylab" I receive the following message: "pip is configured with locations that require tls/ssl however the ssl module in python is not available". Please help me to overcome this problem. Many thanks

回答1:

According to your comment with the PATH variable you are missing the right entries to this so it cannot find the libraries and so on.

If you reinstall python in the first screen you have an option ‘Add Python x.x.x to PATH’ enable this option and then retry what you did.



回答2:

I also had the same problem. But solved it by just adding path variables in evt variables So check for the following paths 1. Anaconda root 2. Anaconda/Scripts 3. Anaconda/Library/bin the 3rd one was not added and after adding all these evt variables do restart your PC. and the error will be resolved.



回答3:

What worked for me is: conda activate in command prompt and then use pip



标签: python ssl