最佳答案
我正在尝试安装 Python 软件包,这是我最近获得的访问权限。我试图利用 Python 相对较新的 每个用户站点-包目录和新的选项 --user
。(选项是 目前没有正式文件,但是它适用于 Python 2.6 + ; 您可以通过运行 python setup.py install --help
查看帮助。)
当我试图逃跑的时候
python setup.py install --user
在我下载的任何软件包上,我总是得到以下错误:
error: can't combine user with with prefix/exec_prefix/home or install_(plat)base
The error was extremely perplexing because, as you can see, I wasn't providing the --prefix
, --exec-prefix
, --install-base
, or --install-platbase
flags as command line options. I wasted a lot of time trying to figure out what the problem was. I document my answer below, in hopes to spare some other poor soul a few hours of 牦牛刮胡子.