How to install python developer package?
yum install python-devel
will work.
If yum
doesn't work then use
apt-get install python-dev
How to install Python Development tools on MSYS2
There are different Python packages to install depending on which MSYS2 environment you are using and which version of Python you want:
$ pacman -Qs python
local/mingw-w64-i686-python2 2.7.14-5
A high-level scripting language (mingw-w64)
local/mingw-w64-i686-python3 3.6.4-2
A high-level scripting language (mingw-w64)
local/mingw-w64-x86_64-python2 2.7.14-5
A high-level scripting language (mingw-w64)
local/mingw-w64-x86_64-python3 3.6.4-2
A high-level scripting language (mingw-w64)
local/python2 2.7.13-1
A high-level scripting language
How to install python-dev on MSYS2?
It looks likepip install python-dev-tools
was what I was looking for.
Python setup.py develop vs install
python setup.py install
is used to install (typically third party) packages that you're not going to develop/modify/debug yourself.
For your own stuff, you want to first install your package and then be able to frequently edit the code without having to re-install the package every time — and that is exactly what python setup.py develop
does: it installs the package (typically just a source folder) in a way that allows you to conveniently edit your code after it’s installed to the (virtual) environment, and have the changes take effect immediately.
Note: It is highly recommended to use pip install .
(regular install) and pip install -e .
(developer install) to install packages, as invoking setup.py
directly will do the wrong things for many dependencies, such as pull prereleases and incompatible package versions, or make the package hard to uninstall with pip
.
Update:
The develop
counterpart for the latest python -m build
approach is as follows (as per):
Related Topics
Python Script to List Users and Groups
Multiple Instances of Python Running Simultaneously Limited to 35
Automatic Detection of Display Availability with Matplotlib
How to Check the Data Transfer on a Network Interface in Python
What Are the Tkinter Events for Horizontal Edge Scrolling (In Linux)
Django Form Dropdown List of Numbers
How to Package a Python Daemon with Setuptools
Why File Read Is Faster on Reading Again
Difference Between Venv, Pyvenv, Pyenv, Virtualenv, Virtualenvwrapper, Pipenv, etc
How to Find the Mountpoint a File Resides On
Default Buffer Size for a File on Linux
Error: Could Not Build Wheels for Glpk Which Use Pep 517 and Cannot Be Installed Directly