I don't have root access to a machine (Linux), but I would like to install the MySQLdb module (or any other MySQL module) for python.
I have tried my usual approach (python setup.py install --user) but it appears the flag is not implemented
Running with the --home=~ flag gives the following
running install
Checking .pth file support in /user/alperin/lib64/python/
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the installation directory:
[Errno 2] No such file or directory: '/user/alperin/lib64/python/test-easy-install-11328.pth'
The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:
/user/alperin/lib64/python/
This directory does not currently exist. Please create it and try again, or choose a different installation directory (using the -d or --install-dir option).
easy install MySQLdb gives the same errors (with the same parameters).
What am I missing?
virtualenvor make sure the directory is on the relevant paths before you try to install it there. – billc.cn Jan 28 at 5:46configure. What I suggest you do is to get the mysql package for the linux distribution and manually install it. – billc.cn Jan 29 at 4:02