Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python-dev installation without package management?

Tags:

python-2.7

I must install python-dev on my embedded linux machine, which runs python-2.7.2. The linux flavor is custom-built by TimeSys; uname -a gives: Linux hotspot-smc 2.6.32-ts-armv7l-LRI-6.0.0 #1 Mon Jun 25 18:12:45 UTC 2012 armv7l GNU/Linux

The platform does not have package management such as 'yum' or 'apt-get', and for various reasons I prefer not to install one. It does have gcc.

Does python-dev source contain C/C++ code? Can I download python-dev source code as a .tar.gz file, for direct compilation on this machine? I have looked for the source but haven't been able to find it.

Thanks, Tom

like image 999
Tomasso Avatar asked Nov 22 '14 00:11

Tomasso


People also ask

Can you install Python packages without pip?

Most Python packages are now designed to be compatible with Python's pip package manager. But if you have a package that is not compatible with pip, you'll need manually install Python packages.

How do I install Python Developer package?

Ensure you can run pip from the command lineRun python get-pip.py . 2 This will install or upgrade pip. Additionally, it will install setuptools and wheel if they're not installed already. Be cautious if you're using a Python install that's managed by your operating system or another package manager.

Does installing Python automatically install pip?

PIP is automatically installed with Python 2.7.9+ and Python 3.4+ and it comes with the virtualenv and pyvenv virtual environments.


1 Answers

You have to use

./configure --enable-shared
like image 174
kalterkrieg Avatar answered Oct 05 '22 03:10

kalterkrieg