DistutilsOptionError: must supply either home or prefix/exec-prefix — not both
问题 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: pip install -I flask-restful --target ./lib but it fails with: must supply either home or prefix/exec-prefix -- not both How can I get this to work? 回答1: 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