How do I install python-dev without root?

I am trying to install YouCompleteMe, the installation guide says I need "python-dev"

sudo apt-get install python-dev

      

My question is how to install this without root access on Debian.

How can I check if I have python-dev?

+3


source to share


3 answers


to check the installation status you can use

 dpkg-query -l python-dev

      

the first line will give you the installation status ( ii

means (currently) installed

and (to-be) installed

)



you cannot install a package without root access (which is a root access point: having privileges to modify system components). However, you can download the file .deb

and extract it locally:

wget http://debian.mirror.ac.za/debian/pool/main/p/python-defaults/python-dev_2.7.9-1_amd64.deb
dpkg -x python-dev_2.7.9-1_amd64.deb .

      

(this will download python-dev and extract it to your current directory)

0


source


you can download the python.org source code ; c / c ++ header files (which are in the debian python-dev package).



0


source


To check if the issue with python-dev is installed

dpkg -l | grep python-dev

      

If it is not installed, you have no root, you will need to download the source code for the version of Python you are working with from http://python.org, the files included in the python-dev package should be included in the include / direcotory tarball which I believe.

0


source







All Articles