◆ Premise Windows: Windows 10 Home anaconda: Anaconda3-2020.07-Windows-x86_64.exe pycharm: PyCharm 2020.2.2 (Community Edition) Use python in
◆ Troublesome phenomenon
(a) with pycharm
File-> Settings ...-> Project: xxx-> Python Interpreter-> +-> Available Packages are not displayed
(b) pip install xxx at the Dos prompt
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
I can't install
(c) At the Anaconda prompt, pip install xxx can be installed normally.
(d) In an interactive python shell that ran python from the Dos prompt,
>>> import ssl
Traceback (most recent call last):
File "
◆ Countermeasures It seems that the place to load libsslxxx.dll and libcryptxxx.dll is bad. Let's modify the PATH environment variable.
(1) Check the PATH that works normally at the Anaconda prompt At the Anaconda prompt > echo %PATH% Make a note of this. Because it's long > echo %PATH% > path.txt You can also look at the txt file later.
(2) Set the above PATH in the environment variable How to set environment variables is omitted. If you select Set environment variable when installing anaconda, it will be added automatically, so the above phenomenon will not occur.
Recommended Posts