Python 3 setuptools on mac

I installed Python 3.2 on my Mac and I want to install some packages using setuptool easy_install.

Alas, the only easy_install version I have (using autocomplete command line):

easy_install      easy_install-2.5  easy_install-2.6

How to install packages for Python 3.2?

Adding

I followed Thomas K's advice :

$ curl -O http://python-distribute.org/distribute_setup.py
$ python distribute_setup.py

But no luck, easy_installstill installing packages Python 2.6:

$ easy_install beautifulsoup
Searching for beautifulsoup
Best match: BeautifulSoup 3.2.0
Processing BeautifulSoup-3.2.0-py2.6.egg

How to get easy_install to extract packages Python 3.2instead?

+5
source share
3 answers

You need to install setuptools - or rather a fork called "distribute", since the original setuptools do not support Python 3.

: http://pypi.python.org/pypi/distribute#installation-instructions

+5

:

$ curl -O http://python-distribute.org/distribute_setup.py
$ python3.2  distribute_setup.py
        ^^^

:

$ curl -O http://python-distribute.org/distribute_setup.py
$ /the/path/to/the/python/where/you/want/it/installed/bin/python distribute_setup.py
+4

Following other instructions:

curl -O http://python-distribute.org/distribute_setup.py
python3.2  distribute_setup.py

If you used the official Python3 package, when you install distribute_setup.py it puts Python3 to easily install the script in the / Library / Frameworks part of the file system. To run the easy_install version of Python3, you must use the following command: root

/Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install

Or put a symlink into it in / usr / local / bin:

sudo ln -s /Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 /usr/local/bin/
0
source

All Articles