Unable to locate package python3 12 distutils. 3 not fully installed or removed. On Debian-based distros such as Ubuntu, the distutils package is mostly missing. 6-doc python3. Update setup. 12. 04, I used the command sudo apt-get install python3-distutils. 12 removed distutils from the standard library (PEP 632), so neither Ubuntu nor Deadsnakes ship a python3. I expected this command to successfully install the python3-distutils package without any errors. Jan 31, 2024 · Steps to reproduce Install Python 3. version is available. Dec 13, 2024 · This is due to distutils having being deprecated in Python 3. post20231016 documentation Asta (Hari krishnan) October 24, 2023, 8:58am 3 Nov 23, 2024 · A comprehensive guide on installing distutils in Python on Ubuntu, covering all necessary steps and alternatives. 12 and later. 04, 20. 12-distutils or python3-distutils package on 24. txt Jan 23, 2025 · Transition to setuptools: Replace distutils with setuptools to maintain compatibility with Python 3. 04 and 22. Oct 24, 2023 · The distutils package has been removed in python 3. 04: Mar 2, 2023 · Question How to make distutils available for Python 3. py: Modify your setup scripts to utilize setuptools instead of distutils for package installation. The following command should solve the problem in Ubuntu 18. g. Only the package root and distutils. 04 Codename: xenial # paste the Sep 23, 2022 · python3 python3-distutils python3-lib2to3 3 upgraded, 0 newly installed, 0 to remove and 26 not upgraded. 6-dbg python-distutils' returned a non-zero code: 100修改方式去Dockerfile文件中修改为python3-dis_unable to locate package python3-distutils Mar 2, 2023 · Question How to make distutils available for Python 3. python. The remaining code has been moved to python3-distutils, which must be installed separately. 6w次,点赞12次,收藏9次。本文讲述了遇到'Unable to locate package python3'问题后,通过先更新源码并尝试sudo apt-get update和sudo apt-get install update的不同效果,最终发现使用sudo apt-get update正确安装Python3的过程。 Feb 11, 2021 · 报错部分E: Unable to locate package python-distutilsThe command '/bin/sh -c apt-get update && apt-get install -y python3. 6 python3. Adopt Modern Tools: Utilize pip and virtual environments to streamline package management and avoid deprecated modules. Sep 16, 2018 · Re: Unable to install python3-distutils package by Lord Boltar » Sun Sep 16, 2018 9:16 pm The best way is use your Synaptic Package Manager in the search block type in python3-distutils It should come up - the version that is displayed is generally for the build you have Mint 18. 6-dev python3. Try to run the following in the terminal: sudo apt-get install python-distutils-extra Per the user who provided this answer, it would seem that python3-distutils ends up installed as a dependency of distutils-extra, though why this method works where other methods failed for me isn't clear. 04 lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 16. 04 using a solution I found in this thread. 04. 11 or older), or wait for its maintainer to update it to support Python 3. May 17, 2025 · Encountering "ModuleNotFoundError: No Module Named 'distutils'" in Python? This guide explains why it happens and provides step-by-step solutions to fix it on Windows, Linux, and macOS. Need to get 0 B/239 kB of archives. 12-distutils from the dockerfile and add setuptools to the requirements. org and Porting from Distutils - setuptools 68. i am running the latest lubuntu version 24. 9 so pip works with the version of Python. 02. . Do you want to continue? [Y/n] y (Reading database 336133 files and directories currently installed. 2. Jul 24, 2025 · 0 I'm running Lubuntu and trying to install python3-distutils, but I keep getting the error: E: Unable to locate package python3-distutils I already ran sudo apt update, and I also tried enabling the universe repository using: sudo add-apt-repository universe sudo apt update …but still no luck. 12? A: To fix this in Python 3. Ultimately I got it working on 16. a system package, like apt install python3-distutils), or downgrade to an older version of Python (3. 12, install setuptools using pip install setuptools, as setuptools now includes the functionality of distutils. The fix was to remove python3. 2 LTS Dec 5, 2024 · Q: How do I fix 'No module named distutils' in Python 3. ) Apr 14, 2022 · 文章浏览阅读2. Jul 3, 2020 · description Unable to locate package python3-distutils os information Ubuntu 16. After this operation, 105 kB of additional disk space will be used. May 6, 2024 · In my attempt to install python3-distutils on Ubuntu 24. See PEP 632 – Deprecate distutils module | peps. 3 or 19 etc this will also get any dependencies needed Feb 27, 2026 · Python 3. 12 Install speech_recognition and pyaudio with pip (pip install SpeechRecognition and pip install pyaudio) Create a Python script with this code: import speech_r Oct 7, 2023 · If you want to use that distribution, you'll need to either install setuptools, which now also provides distutils, or sideload distutils from a third party source (e. 6 LTS Release: 16. xbvsxsmr gij kwggsao pyea udfgg yfo fgijo gypkift nmsfa kkwz
Unable to locate package python3 12 distutils. 3 not fully installed or removed. ...