- Saved searches
- Use saved searches to filter your results more quickly
- Installing python: python-dev not found [Ubuntu 22.04] #219
- Installing python: python-dev not found [Ubuntu 22.04] #219
- Comments
- How To Install python3.9-dev on Ubuntu 22.04
- What is python3.9-dev
- Install python3.9-dev Using apt-get
- Install python3.9-dev Using apt
- Install python3.9-dev Using aptitude
- How To Uninstall python3.9-dev on Ubuntu 22.04
- Uninstall python3.9-dev And Its Dependencies
- Remove python3.9-dev Configurations and Data
- Remove python3.9-dev configuration, data, and all of its dependencies
- References
- Summary
- How can I install python-dev off apt-get?
- Package: python3-dev (3.8.2-0ubuntu2)
- Original Maintainers (usually from Debian):
- External Resources:
- Similar packages:
- header files and a static library for Python (default)
- Other Packages Related to python3-dev
- Download python3-dev
- Пакет: python3-dev (3.8.2-0ubuntu2)
- Original Maintainers (usually from Debian):
- Внешние ресурсы:
- Подобные пакеты:
- header files and a static library for Python (default)
- Другие пакеты, относящиеся к python3-dev
- Загрузка python3-dev
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing python: python-dev not found [Ubuntu 22.04] #219
Installing python: python-dev not found [Ubuntu 22.04] #219
Comments
Data science content type (pick one)
Description
When executing the «Let’s install dependencies code», an error message related to the python-dev occurs: the package is not found. This results in no dependencies being installed at all.
System: Ubuntu 22.04 LTS fresh install (oh, the joys of forgetting to update a non-LTS version of Ubuntu in time. ).
Screenshots
When executing the «Let’s install dependencies code», the following error occurs:
Package python-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: python2-dev:i386 python2:i386 python2-dev python2 python-dev-is-python3 E: Package 'python-dev' has no installation candidate
Potential solutions
I’ve seen a screenshot of a recent WSL install where it could not find this package either, but replaced it by python-dev-is-python2 . (Which made me wonder if python-dev-is-python3 would not make more sense?)
I took another approach to test if I could just omit python-dev (knowing that python3-dev package is installed), which seems to work.
I haven’t thoroughly tested, but I could continue setup up until and including the jupyter part without problems. Will update this issue if I encounter any problems later on.
The text was updated successfully, but these errors were encountered:
How To Install python3.9-dev on Ubuntu 22.04
In this tutorial we learn how to install python3.9-dev on Ubuntu 22.04.
What is python3.9-dev
Header files, a static library and development tools for building Python (v3.9) modules, extending the Python interpreter or embedding Python (v3.9) in applications.
Maintainers of Python packages should read README.maintainers.
There are three ways to install python3.9-dev on Ubuntu 22.04. We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.
Install python3.9-dev Using apt-get
Update apt database with apt-get using the following command.
After updating apt database, We can install python3.9-dev using apt-get by running the following command:
sudo apt-get -y install python3.9-dev
Install python3.9-dev Using apt
Update apt database with apt using the following command.
After updating apt database, We can install python3.9-dev using apt by running the following command:
sudo apt -y install python3.9-dev
Install python3.9-dev Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
After updating apt database, We can install python3.9-dev using aptitude by running the following command:
sudo aptitude -y install python3.9-dev
How To Uninstall python3.9-dev on Ubuntu 22.04
To uninstall only the python3.9-dev package we can use the following command:
sudo apt-get remove python3.9-dev
Uninstall python3.9-dev And Its Dependencies
To uninstall python3.9-dev and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove python3.9-dev
Remove python3.9-dev Configurations and Data
To remove python3.9-dev configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge python3.9-dev
Remove python3.9-dev configuration, data, and all of its dependencies
We can use the following command to remove python3.9-dev configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3.9-dev
References
Summary
In this tutorial we learn how to install python3.9-dev package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.
How can I install python-dev off apt-get?
I have tried this and this and this and this None of those install python-dev, I got my amd64 system, 14.04 up and running, as I try to install wagtail, a django cms, I get the error:
pysass.c:4:20: fatal error: Python.h: No such file or directory #include ^ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Cleaning up. Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/ libsass/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace ('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ojWg1O-record/install- record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/libsass Storing debug log for failure in /home/payload/.pip/pip.log
How can I fix this and install the package? It’s because of the missing Python.h c header which is included in the python-dev package. When I tried the above links, it says: apt-get install python-dev
Package python-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: python E: Package 'python-dev' has no installation candidate
Package python2.7-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'python2.7-dev' has no installation candidate
I have researched on the debian archives and found a package for python 2.7.8-1 but that couldn’t be installed. Tried this on launchpad too but doesn’t work.
Package: python3-dev (3.8.2-0ubuntu2)
Please consider filing a bug or asking a question via Launchpad before contacting the maintainer directly.
Original Maintainers (usually from Debian):
It should generally not be necessary for users to contact the original maintainer.
External Resources:
Similar packages:
- libpython3.8-dev
- python3.8-dev
- libpython2.7-dev
- python2.7-dev
- libpython3.9-dev
- python3.9-dev
- libpython3.10-dev
- python3.10-dev
- libpython3.11-dev
- python3.11-dev
- libpython3.12-dev
header files and a static library for Python (default)
Other Packages Related to python3-dev
- depends
- recommends
- suggests
- enhances
- dep: libpython3-dev (= 3.8.2-0ubuntu2) header files and a static library for Python (default)
- dep: python3 (= 3.8.2-0ubuntu2) interactive high-level object-oriented language (default python3 version)
- dep: python3-distutils (>= 3.8.2-1~) distutils package for Python 3.x
- dep: python3.8-dev (>= 3.8.2-1~) Header files and a static library for Python (v3.8)
Download python3-dev
Architecture | Package Size | Installed Size | Files |
---|---|---|---|
amd64 | 1.2 kB | 11.0 kB | [list of files] |
arm64 | 1.2 kB | 11.0 kB | [list of files] |
armhf | 1.2 kB | 11.0 kB | [list of files] |
i386 | 1.2 kB | 11.0 kB | [list of files] |
ppc64el | 1.2 kB | 11.0 kB | [list of files] |
riscv64 | 1.2 kB | 11.0 kB | [list of files] |
s390x | 1.2 kB | 11.0 kB | [list of files] |
This page is also available in the following languages:
Content Copyright © 2023 Canonical Ltd.; See license terms. Ubuntu is a trademark of Canonical Ltd. Learn more about this site.
Пакет: python3-dev (3.8.2-0ubuntu2)
Please consider filing a bug or asking a question via Launchpad before contacting the maintainer directly.
Original Maintainers (usually from Debian):
It should generally not be necessary for users to contact the original maintainer.
Внешние ресурсы:
Подобные пакеты:
- libpython3.8-dev
- python3.8-dev
- libpython2.7-dev
- python2.7-dev
- libpython3.9-dev
- python3.9-dev
- libpython3.10-dev
- python3.10-dev
- libpython3.11-dev
- python3.11-dev
- libpython3.12-dev
header files and a static library for Python (default)
Другие пакеты, относящиеся к python3-dev
- зависимости
- рекомендации
- предложения
- enhances
- dep: libpython3-dev (= 3.8.2-0ubuntu2) header files and a static library for Python (default)
- dep: python3 (= 3.8.2-0ubuntu2) interactive high-level object-oriented language (default python3 version)
- dep: python3-distutils (>= 3.8.2-1~) distutils package for Python 3.x
- dep: python3.8-dev (>= 3.8.2-1~) Header files and a static library for Python (v3.8)
Загрузка python3-dev
Архитектура | Размер пакета | В установленном виде | Файлы |
---|---|---|---|
amd64 | 1,2 Кб | 11,0 Кб | [список файлов] |
arm64 | 1,2 Кб | 11,0 Кб | [список файлов] |
armhf | 1,2 Кб | 11,0 Кб | [список файлов] |
i386 | 1,2 Кб | 11,0 Кб | [список файлов] |
ppc64el | 1,2 Кб | 11,0 Кб | [список файлов] |
riscv64 | 1,2 Кб | 11,0 Кб | [список файлов] |
s390x | 1,2 Кб | 11,0 Кб | [список файлов] |
This page is also available in the following languages:
Авторские права © 2023 Canonical Ltd.; См. условия лицензии. Ubuntu это торговый знак компании Canonical Ltd. Об этом сайте.