Measures that pip install cannot be done with pycharm or import ssl cannot be done

◆ 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 "", line 1, in File "C:\Users\xxx\anaconda3\lib\ssl.py", line 98, in import _ssl # if we can't import it, let the error propagate ImportError: DLL load failed while importing _ssl: The specified module cannot be found. become that way. (e) In the interactive pytho shell executed from the Anaconda prompt, there is no error even if import ssl is performed.

◆ 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

Measures that pip install cannot be done with pycharm or import ssl cannot be done
Problem that pip install cannot be done with pyenv + Yosemite (error: command'clang' failed with exit status 1)
Investigation when import cannot be done with python
Install packages that need to be compiled with Python3 with pip [Windows]
SSL certificate related with pip install? Error
Items that cannot be imported with sklearn
Install pip and pandas with Ubuntu or VScode
List packages that can be updated with pip
When import matplotlib.pyplot cannot be done in pyenv-virtualenv environment
Error with pip install
Install scikit.learn with pip
A memorandum (masOS) that import tkinter could not be done with python installed from pyenv
It seems that Skeleton Tracking can be done with RealSense
Options when installing libraries that cannot be piped with pyenv
Install packages that cannot use pip in Azure App Service
Examples and solutions that cannot be optimized well with scipy.optimize.least_squares
I investigated the pretreatment that can be done with PyCaret
When moss with pip install
Install github repository with pip
Read this if you get SSL related errors with pip install! !! !!
Parallel computing (pathos) when dealing with objects that cannot be pickled