8

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

sudo apt-get install python-dev

My question is how do I install this with out root access on Debian.

How can I check if I have python-dev?

A.D
  • 1,480
  • 2
  • 18
  • 33

3 Answers3

2

to check the installation status, you can use

 dpkg-query -l python-dev

the first row will give you the installation status (ii means (currently) installed and (to-be) installed)

you cannot install a package without root-access (that's the point of root-access: having the priviliges to modify the system components). However, you can download the .deb file 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 into your current directory)

umläute
  • 28,885
  • 9
  • 68
  • 122
0

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

hiro protagonist
  • 44,693
  • 14
  • 86
  • 111
  • "which are in the debian package python-dev" could you be more specific please? I am not sure what I am looking for. – A.D Jun 30 '15 at 20:21
  • python-dev provides the header files and static libraries you need in order to compile python. but everything that is in there can be downloaded directly from python as well. these are mostly `*.h` files. – hiro protagonist Jun 30 '15 at 20:26
  • 2
    I am still not 100% sure I follow (sorry I am new to this) I did the following: downloaded python source, it looks like it has *.h files in the Include folder. then I installed python using ./configure --prefix=$HOME && make && make install. Does this mean I have python-dev? do I no longer need to try and run "sudo apt-get install python-dev" – A.D Jun 30 '15 at 20:48
0

To check if you have python-dev installed issue

dpkg -l | grep python-dev

If it is not installed you don't have root you will need to download the sourcecode for the version of Python you are working with from http://python.org the files that are included in the python-dev package should be under the include/ direcotory of the tarball I believe.

Brian
  • 59
  • 3
  • 10