PyCharm virtualenv ModuleNotFoundError: No module named 'distutils.core'

preview_player
Показать описание


Solution
sudo apt-get install python3-distutils

Error
Traceback (most recent call last):
import setuptools
File "/tmp/tmpmhuk7uzepycharm-management/setuptools-40.8.0/setuptools/__init__.py", line 6, in module

Step #1: Verify Python version and modules
Step #2: Install python3-distutils
Step #3: Verify the modules in PyCharm

---------------------------------------------------------------------------------------------------------------------------------------------------------------
Bonus resources


---------------------------------------------------------------------------------------------------------------------------------------------------------------
Code store


Socials

Рекомендации по теме
Комментарии
Автор

You are the best.
Thanks a lot
Greetings from India

_nandankandra
Автор

Thank you so much bro. The sudo apt-get install python3-distutils works !!!

vishalsathiaseelan
Автор

i run: sudo apt-get install python3-distutils

press enter, and it keeps asking me for a password

realtalkjames
Автор

I installed pygame, opencv packages in command prompt but when i try to import in pycharm it is showing 'module not found'.I also tried to install it from pycharm it shows :ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none)

DINESHRAM-oumx
Автор

Muito Obrigado Amigo!!! Resolveu o problema!

Erickmamede
Автор

i did the same thing and it didnt work for me, can someone help please?

Mostardapreta
Автор

Hello, I’m pretty new to Python and Pycharm so whenever I go on the terminal and type up the command, it says ‘sudo’ is not recognised as an internal or external command, operable program or batch file. I am using Windows.

Kingcle
Автор

thanks for your halp. Your save my life KKKK

centrotecnologicodaamazoni
Автор

i tried the command but it didn't work so i changed python3-distutils to python3.8-distutils and it worked !!! thanks man

nassimback