Installing python packages.

With Django sub forum.
Post Reply
KBleivik
Site Admin
Posts: 184
Joined: Tue Sep 29, 2009 6:25 pm
Location: Moss Norway
Contact:

Installing python packages.

Post by KBleivik »

The easiest may be to install Python using http://www.activestate.com/activepython/downloads Activestat'e ActivePython community edition that have the necessary tools. I have not used that, since I installed Python 2.7.2 myself. Note the following quote
site-packages is a pretty standard place to put packages, if the packages are in there then you'll start running into library conflicts.

I've written python apps that run on windows, freebsd & linux and always use site-packages without problem.
from this http://forums.freebsd.org/showthread.php?t=16197

But there are automatic package installations like easy_install and the newer pip http://www.pip-installer.org/en/latest/index.html Also note:
Warning

If you are using Python 3.X you must use distribute; setuptools doesn’t support Python 3.X.
Source: http://www.pip-installer.org/en/latest/installing.html

Distribute documentation: http://pypi.python.org/pypi/distribute

But since I use Python 2.7.2 and installed Python myself, I found what I needed in this http://stackoverflow.com/questions/4750 ... on-windows thread, namely
So:

1. Download the last pip version from here: http://pypi.python.org/pypi/pip#downloads
2. Uncompress it
3. Download the last easy installer for Windows: (download the .exe at the bottom of http://pypi.python.org/pypi/setuptools ). Install it.
4. go to the uncompressed pip directory and: python setup.py install
5. Add your python c:\Python2x\Scripts to the path

You are done.

Now you can use pip install package to easily install packages as in Linux :)
Related information: http://www.stuartellis.eu/articles/pyth ... essentials

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest