Analysis
This error has something to do with the SSL (secure sockets layer, an international standard communication protocol for encryption and identity authentication) module in Python. If you successfully install the SSL module, you can solve this problem.
resolvent
Windows system is slightly different from other UNIX like systems, but you can confirm whether SSL module is installed in the python version you are using. In the python environment, use the following command to view the installed module:
help("modules")
According to the official documents of python, SSL is a module used for network and interprocess communication in the python standard library. The Windows version of Python installation program usually includes the whole standard library, and even additional components. Other UNIX like operating systems are divided into a series of software packages, and some or all components may need to be installed through the package management tool.
Windows system
Because the Windows version of Python installation program contains SSL module, check whether the environment variables are set well.
If anaconda is used, because it already contains python, check the SSL in the installed module, and then check whether the following environment variables are added completely.
InstallPath #Assuming InstallPath is your installation path
InstallPath\Scripts
InstallPath\Library\bin
If there is no SSL module, or there is no problem with the above operations, and an error is still reported, you can try to re install python.
UNIX like operating system
After the default installation, the functions related to SSL cannot be used normally, and the corresponding parameters need to be added when checking the configuration before compilation.
# Add the --with-ssl parameter when installing python
./configure --prefix=/usr/local/python37 --with-ssl
Read More:
- [Solved] HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/saved_model
- python chatterbot [nltk_data] Error loading stopwords: <urlopen error [Errno 11004]
- Python Requests Error: Max retries exceeded with url
- Invalid python sd, Fatal Python error: init_fs_encoding: failed to get the Python cod [How to Solve]
- Using postman Test Django Interface error: RuntimeError:You called this URL via POST,but the URL doesn‘t end in a slash
- [Solved] deepin python Message: unknown error: cannot find Chrome binary
- [Solved] NPM install Error: check python checking for Python executable python2 in the PATH
- Python: Django exception when executing migrate operation: django.db.utils.OperationalError: (1051, “Unknown table’xxx’”)
- How to Solve Python WARNING: Ignoring invalid distribution -ip (e:\python\python_dowmload\lib\site-packages)
- Python Pandas Typeerror: invalid type comparison
- Python 3.X error: valueerror: data type must provide an itemsize
- When sending HTTP request, python encountered: error 54, ‘connection reset by peer’ solution
- [Solved] urllib.error.URLError: <urlopen error [SSL: WRONG_VERSION_NUMBER] wrong version number
- VScode debug error: configured debug type ‘Python’ is not supported
- Python scatter chart error: TypeError: object of type ‘NoneType’ has no len()
- TypeError: Decimal type object is not a JSON serialization solution
- Python TypeError: Unrecognized value type: <class ‘str‘>dateutil.parser._parser.ParserError: Unknow
- Solution for Python3.7 import gevent module error
- [Solved] opencv-python: recipe for target ‘modules/python3/CMakeFiles/opencv_python3.dir/all‘ failed