루트 없이 Python용 MySQLdb 모듈을 설치할 때 권한 오류가 발생했습니다.

루트 없이 Python용 MySQLdb 모듈을 설치할 때 권한 오류가 발생했습니다.

컴퓨터(Linux)에 대한 루트 액세스 권한이 없지만 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).

쉬운 설치 MySQLdb는 동일한 오류를 발생시킵니다(동일한 매개변수 사용).

내가 무엇을 놓치고 있나요?

관련 정보