Install python module for one user without root access?

0

1

I have a Python program that uses wxPython and I bundle with py2app on Mac. This worked perfectly fine under 2.6 (I had wx and py2app installed in 2.6). But because of some bugs in the zipfile library under 2.6 (like not being able to zip or unzip files), I have to use 2.7.3. My administrator installed Python 2.7.3, so zipfile is no longer a problem. But, 2.7.3 doesn't come with py2app, and since my highly qualified administrator is afraid of terminals, I can't install py2app. I thought of virtualenv, but wxPython refuses to install on a virtualenv.

So, bottom line, is there any way I can install py2app for just my user, so I don't need root/sudo? Whether it's just the library, or a completely new python installation, or any other method, I need 2.7.3 with py2app and wxpython.

tkbx

Posted 2013-01-05T14:57:01.047

Reputation: 185

Answers

0

Normally you can install modules for non-root users using

pip install --user py2app

I believe easy_install -U py2app also works...

hwjp

Posted 2013-01-05T14:57:01.047

Reputation: 147

I don't have pip, and easy_install doesn't have a --user. Can I download pip and run it without installing to /usr/bin or anything? – tkbx – 2013-01-05T16:53:21.017

try easy_install -U. I'll update my answer. – hwjp – 2013-01-05T16:58:35.600

--upgrade (-U): force upgrade (searches PyPI for latest versions) – tkbx – 2013-01-05T17:10:57.017