Install dateutils on OS X. How to install another version of Python

I am trying to install dateutils on OS X 10.6. When I run python setup.py install, it installs fine, but into the Python 2.6 directory. I need to use Python 2.5, which is the "standard" version of python. By this, I mean that when I run python from the command line, it loads Python 2.5.4.

Is there a way to install modules for specific versions of Python. I did not have the problem as usual, as usual, it is installed on the version of Python that I installed by default.

+5
source share
3 answers

Usually you should also have python2.5in your way:

python2.5 setup.py install
0
source
pip install python-dateutil

, , Windows: python-dateutil Windows?

+4

What version of Mac OS X are you using, what is your PATH, and did you install another version of Python using MacPython, or did you install it through MacPorts? On Mac OS X 10.6 Snow Leopard, the following command works fine when installing dateutils in the system version of Python.

sudo easy_install -O2 dateutils

Please note that if your second Python installation also has setuptools installed, and if this easy_install utility overrides the default value in PATH, it will be installed in another Python.

+1
source

All Articles