在沒有 root 的情況下為 python 安裝 MySQLdb 模組時出現權限錯誤

在沒有 root 的情況下為 python 安裝 MySQLdb 模組時出現權限錯誤

我沒有機器(Linux)的 root 存取權限,但我想為 python 安裝 MySQLdb 模組(或任何其他 MySQL 模組)。

我嘗試了我常用的方法(python setup.py install --user),但似乎該標誌未實現

使用 --home=~ 標誌運行給出以下結果

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 給了相同的錯誤(具有相同的參數)。

我缺什麼?

相關內容