How to Install Python Developer Package

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 like

pip 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):

Sample Image



Related Topics



Leave a reply



Submit