Error installing Python 3.5 package "socket" pycharm

Unable to install this package only using PyCharm or the command line:

Collecting socket Using cached socket-0.5.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\ADMIN_~1\AppData\Local\Temp\pip-build-v6d_dkqz\socket\setup.py", line 2, in <module> raise RuntimeError("Package 'socket' must not be downloaded from pypi") RuntimeError: Package 'socket' must not be downloaded from pypi Command "python setup.py egg_info" failed with error code 1 in C:\Users\ADMIN_~1\AppData\Local\Temp\pip-build-v6d_dkqz\socket\ 

Downloading the package separately and installing also do not work.

+5
source share
1 answer

If you open the downloaded file, I mean setup.py , you will notice that it consists of one line:

 raise RuntimeError("Package 'socket' must not be downloaded from pypi") 

socket module is already included in the standard library. You do not need to download anything. Just enter import socket and you are all set up.

+8
source

Source: https://habr.com/ru/post/1258283/


All Articles