Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Python 2.7 devel if I have Python 2.7 in a different directory

I have python 2.7 installed in /opt/python2.7. Now i want to install the devel packages for it but could not find it.

How can i install it os that goes in python2.7 not for default python2.4

like image 284
Mirage Avatar asked Jun 03 '11 07:06

Mirage


People also ask

How do I install Python in a different location?

To change install location, click on Customize installation , then Next and enter C:\python35 (or another appropriate location) as the install location. If you didn�t check the Add Python 3.5 PATH option earlier, check Add Python to environment variables .

Can I have both Python 2 and 3?

So to be able to use multiple versions of Python: install Python 2. x (x is any version you need) install Python 3.

Does Python 2.7 include pip?

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

Where does Python 2.7 install on Windows?

By design, Python installs to a directory with the version number embedded, e.g. Python version 2.7 will install at C:\Python27\ , so that you can have multiple versions of Python on the same system without conflicts.


1 Answers

Installing Python from source installs the development files in the same prefix.

like image 150
Ignacio Vazquez-Abrams Avatar answered Nov 01 '22 11:11

Ignacio Vazquez-Abrams