DistutilsOptionError: must supply either home or prefix/exec-prefix — not both

前端 未结 8 2075
旧时难觅i
旧时难觅i 2020-11-28 01:03

I\'ve been usually installed python packages through pip.

For Google App Engine, I need to install packages to another target directory.

I\'ve tried:

8条回答
  •  遥遥无期
    2020-11-28 01:35

    Are you using OS X and Homebrew? The Homebrew python page https://github.com/Homebrew/brew/blob/master/docs/Homebrew-and-Python.md calls out a known issue with pip and a work around.

    Worked for me.

    You can make this "empty prefix" the default by adding a ~/.pydistutils.cfg file with the following contents:

    [install]
    prefix=
    

    Edit: Do not use this Homebrew recommended option, it will break normal pip operations.

提交回复
热议问题