Unable to locate package python3 12 distutils. 9 so pip works with the version of Python. 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. txt Jan 23, 2025 · Transition to setuptools: Replace distutils with setuptools to maintain compatibility with Python 3. 04: Mar 2, 2023 · Question How to make distutils available for Python 3. May 6, 2024 · In my attempt to install python3-distutils on Ubuntu 24. 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-distutils or python3-distutils package on 24. 6-dev python3. 12, install setuptools using pip install setuptools, as setuptools now includes the functionality of distutils. 04 and 22. 2. 11 or older), or wait for its maintainer to update it to support Python 3. 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. version is available. Jan 31, 2024 · Steps to reproduce Install Python 3. a system package, like apt install python3-distutils), or downgrade to an older version of Python (3. 04, I used the command sudo apt-get install python3-distutils. 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. 04 lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 16. Ultimately I got it working on 16. 3 not fully installed or removed. 6-doc python3. 6 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. I expected this command to successfully install the python3-distutils package without any errors. Dec 13, 2024 · This is due to distutils having being deprecated in Python 3. 02. 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. Do you want to continue? [Y/n] y (Reading database 336133 files and directories currently installed. 04 using a solution I found in this thread. On Debian-based distros such as Ubuntu, the distutils package is mostly missing. Need to get 0 B/239 kB of archives. py: Modify your setup scripts to utilize setuptools instead of distutils for package installation. 3 or 19 etc this will also get any dependencies needed Feb 27, 2026 · Python 3. 12? A: To fix this in Python 3. The following command should solve the problem in Ubuntu 18. 12. Only the package root and distutils. python. Oct 24, 2023 · The distutils package has been removed in python 3. . 12-distutils from the dockerfile and add setuptools to the requirements. Update setup. See PEP 632 – Deprecate distutils module | peps. After this operation, 105 kB of additional disk space will be used. 6 LTS Release: 16. The fix was to remove python3. 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. ) Apr 14, 2022 · 文章浏览阅读2. 12 removed distutils from the standard library (PEP 632), so neither Ubuntu nor Deadsnakes ship a python3. Jul 3, 2020 · description Unable to locate package python3-distutils os information Ubuntu 16. i am running the latest lubuntu version 24. org and Porting from Distutils - setuptools 68. 12 and later. 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. g. The remaining code has been moved to python3-distutils, which must be installed separately. 2 LTS Dec 5, 2024 · Q: How do I fix 'No module named distutils' in Python 3. Adopt Modern Tools: Utilize pip and virtual environments to streamline package management and avoid deprecated modules. 04, 20. 04. 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. czgmhwd rxw ciw zev ykzbl qfego vcch zqwkkm ryzfq aax