ModuleNotFoundError: No module named 'distutils' in Python Solved

  Рет қаралды 21,937

BYTECH TECHNOLOGIES

BYTECH TECHNOLOGIES

9 ай бұрын

how to solve ModuleNotFoundError: No module named 'distutils'
this is the error message;
Traceback (most recent call last):
File "frozen runpy", line 198, in _run_module_as_main
File "frozen runpy", line 88, in _run_code
\django\utils\version.py", line 6, in module
from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'

Пікірлер: 40
@bytechtechnologies123
@bytechtechnologies123 8 ай бұрын
Please🙏 like❤️ comment 💬 subscribe 🔔 and share ↪️for more. If you got any other persisting errors in your coding journey, post them here we may have solutions for you
@VaishnaviBhosale-xg4yn
@VaishnaviBhosale-xg4yn 2 ай бұрын
I just installed matplotlib but now i am getting error: DLL load failed while importing _cext: The specified module could not be found. File "C:\Users\dell\Desktop\...\practice.py", line 2, in import matplotlib.pyplot as plt ImportError: DLL load failed while importing _cext: The specified module could not be found. please help!!!
@amgadbadwy9105
@amgadbadwy9105 8 ай бұрын
thanks mate, have been looking for a solution for a while, keep it up
@bytechtechnologies123
@bytechtechnologies123 8 ай бұрын
Thanks, please share and subscribe for more
@mueedshaikh4446
@mueedshaikh4446 9 күн бұрын
​@@bytechtechnologies123django is not recognised error occurred
@user-wn1ho4qn9v
@user-wn1ho4qn9v Ай бұрын
This error can also because 'distutils' module is removed in python version 3.12 as i am an intermediate programmer i got to know while reading the documentation of python 3.12 instead it jas prescribed setuptools module if you are in python version below 3.12 and you have installed disturils module then again the problem may arise if you are using a virtual environment without knowing its its features and checking its options
@Nikita-oi3gx
@Nikita-oi3gx 3 ай бұрын
Thanks man! Greating form Coding with Mosh XD
@stevefortuin9847
@stevefortuin9847 6 ай бұрын
Great fix, thank you 😁
@bytechtechnologies123
@bytechtechnologies123 6 ай бұрын
No worries 😁
@user-kc1gp5mo7k
@user-kc1gp5mo7k 7 ай бұрын
Thanks. Is a very helpful video
@bytechtechnologies123
@bytechtechnologies123 7 ай бұрын
I appreciate 🙏
@user-wd1hq1mb2h
@user-wd1hq1mb2h 2 ай бұрын
Thanks man. It worked
@MCA__c__soham
@MCA__c__soham 7 ай бұрын
thank you brother, it's working..
@bytechtechnologies123
@bytechtechnologies123 7 ай бұрын
Am glad you got aid
@louis336
@louis336 6 ай бұрын
I have an issue, i add a bootsratp to my django app but the same error appear „no module ‚distutils’” could you help with it? I got django 4.2.6
@bytechtechnologies123
@bytechtechnologies123 6 ай бұрын
Could you please copy paste the error you are getting in the comments
@louis336
@louis336 6 ай бұрын
@@bytechtechnologies123 G: Zone\venv\Scripts\python.exe G: Zone\manage.py runserver Watching for file changes with StatReloader Exception in thread django-main-thread: Traceback (most recent call last): File "C:\Users\wlose\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1052, in _bootstrap_inner self.run() File "C:\Users\wlose\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 989, in run self._target(*self._args, **self._kwargs) File "G: Zone\venv\Lib\site-packages\django\utils\autoreload.py", line 64, in wrapper fn(*args, **kwargs) File "G: Zone\venv\Lib\site-packages\django\core\management\commands unserver.py", line 125, in inner_run autoreload.raise_last_exception() File "G: Zone\venv\Lib\site-packages\django\utils\autoreload.py", line 87, in raise_last_exception raise _exception[1] File "G: Zone\venv\Lib\site-packages\django\core\management\__init__.py", line 394, in execute autoreload.check_errors(django.setup)() File "G: Zone\venv\Lib\site-packages\django\utils\autoreload.py", line 64, in wrapper fn(*args, **kwargs) File "G: Zone\venv\Lib\site-packages\django\__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "G: Zone\venv\Lib\site-packages\django\apps egistry.py", line 91, in populate app_config = AppConfig.create(entry) ^^^^^^^^^^^^^^^^^^^^^^^ File "G: Zone\venv\Lib\site-packages\django\apps\config.py", line 193, in create import_module(entry) File "C:\Users\wlose\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1381, in _gcd_import File "", line 1354, in _find_and_load File "", line 1325, in _find_and_load_unlocked File "", line 929, in _load_unlocked File "", line 994, in exec_module File "", line 488, in _call_with_frames_removed File "G: Zone\venv\Lib\site-packages\bootstrapform\__init__.py", line 1, in from .meta import VERSION File "G: Zone\venv\Lib\site-packages\bootstrapform\meta.py", line 1, in from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils'
@bytechtechnologies123
@bytechtechnologies123 6 ай бұрын
Here are my three suggestions, Solution 1; Try following the steps I showed in this video and make sure your internet is on or Solution 2; If your program was working well before you added bootstrap, then remove the bootstrap files and find a video explaining well how to include boostrap in Django Solution3: Start a new project and find a well explained tutorial on how to add bootstrap in Django and make sure to check if your program is running well before adding bootstrap
@hamzalodhi-ci6ho
@hamzalodhi-ci6ho 3 ай бұрын
I wanna install numPy 1.25.0 instead of latest version but when I tried to install It is throwing soo long error and when I saw your video you said that don't specify the version so what to do?
@bytechtechnologies123
@bytechtechnologies123 3 ай бұрын
When is the error occurring? Is it when you've specified? Or when you've not specified?
@salfordqoutes1719
@salfordqoutes1719 5 ай бұрын
not working showing loop version. please help me
@bytechtechnologies123
@bytechtechnologies123 5 ай бұрын
Sorry for that. What do you mean by loop version
@4nsruthless35
@4nsruthless35 4 ай бұрын
But I want pyaudio is this is a same process to get that
@bytechtechnologies123
@bytechtechnologies123 4 ай бұрын
Not really
@knowledgefeels
@knowledgefeels 5 ай бұрын
from distutils.version import LooseVersion ModuleNotFoundError: No module named 'distutils. ....... Bro pyodio mai ye problem aa rahi h kese theek karu 😢😢please help 🥺
@bytechtechnologies123
@bytechtechnologies123 4 ай бұрын
Could you explain in English kindly the issue you are encountering
@brightkey-inanutshell1320
@brightkey-inanutshell1320 3 ай бұрын
​@@bytechtechnologies123I am also having same problem, I was making Jarvis Ai but when i run program it shows -> "C:\Users\User\Desktop\pythonProject\.venv\Lib\site-packages\speech_recognition\_init.py", line 111, in get pyaudio from distutils.version import LooseVersion ModuleNotFoundError: No module named 'distutils' " This message is coming could you please help us, i would subscribe if you reply, i have windows 11, pycharm
@bytechtechnologies123
@bytechtechnologies123 3 ай бұрын
This error occurs as a result of difference in versions of installed files and required files, So i'll suggest the following: Avoid installing the exact version of modules especially if you watched a tutorial that was recorded some time back, because the configurations might have changed in the newest versions, if possible install modules without version and python will choose the latest compatible version. Example instead of installing Django version 2.11 using the terminal window, instead install Django and the system will choose the latest compatible version Therefore uninstall any installed module and reinstall without the exact version. Secondly make sure you have all the required files, and modules for your respective project because the error simply suggests that you are missing required files
@brightkey-inanutshell1320
@brightkey-inanutshell1320 3 ай бұрын
Ok so should i try to install module distutils file in pyaudio? I have installed all the latest versions of pyaudio module but still there isn't distutils in it ?
@brightkey-inanutshell1320
@brightkey-inanutshell1320 3 ай бұрын
I have got distutils but it's showing can't import distutils from locations why so?
@nikola2692
@nikola2692 6 ай бұрын
it didn't help:( C:\Users ikol\AppData\Local\Programs\Python\Python312\labelimg\labelimg\Scripts>labelimg Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users ikol\AppData\Local\Programs\Python\Python312\labelimg\labelimg\Scripts\labelImg.exe\__main__.py", line 4, in File "C:\Users ikol\AppData\Local\Programs\Python\Python312\labelimg\labelimg\Lib\site-packages\labelImg\labelImg.py", line 5, in import distutils.spawn ModuleNotFoundError: No module named 'distutils'
@bytechtechnologies123
@bytechtechnologies123 6 ай бұрын
Hello, kindly rewatch the video and try to follow the steps keenly. I can see your error is similar to what I posted in the description
@nikola2692
@nikola2692 6 ай бұрын
@@bytechtechnologies123 I did everything, I used the PyCharm terminal and everything worked out)))
@bytechtechnologies123
@bytechtechnologies123 6 ай бұрын
If you found the video helpful kindly subscribe, like and share☺️🙏
@meysam8183
@meysam8183 3 ай бұрын
😘😘😘😘😘😘😘
@bytechtechnologies123
@bytechtechnologies123 3 ай бұрын
I appreciate 😊
@user-jg1ip8rn8j
@user-jg1ip8rn8j 3 ай бұрын
from distutils.version import LooseVersion ModuleNotFoundError: No module named 'distutils' undetectable_chromedrivr
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 169 М.
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 7 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 8 МЛН
Beautiful gymnastics 😍☺️
00:15
Lexa_Merin
Рет қаралды 14 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 57 МЛН
[SOLVED] pip is not recognized as an internal or external command
5:29
CS CORNER Sunita Rai
Рет қаралды 87 М.
How to Fix "No Module Named..." Error in Python | Python Tutorial
7:07
Object-Oriented Programming is Bad
44:35
Brian Will
Рет қаралды 2,3 МЛН
PyAudio  Installation Problem Solved | Install pyaudio without error [Hindi]
6:27
Learn Code With Durgesh
Рет қаралды 42 М.
Unlocking your CPU cores in Python (multiprocessing)
12:16
mCoding
Рет қаралды 297 М.
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 7 МЛН