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

前端 未结 8 2051
旧时难觅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:52

    Another solution* for Homebrew users is simply to use a virtualenv.

    Of course, that may remove the need for the target directory anyway - but even if it doesn't, I've found --target works by default (as in, without creating/modifying a config file) when in a virtual environment.


    *I say solution; perhaps it's just another motivation to meticulously use venvs...

    0 讨论(0)
  • 2020-11-28 01:55

    I have a similar issue. I use the --system flag to avoid the error as I decribe here on other thread where I explain the specific case of my situation. I post this here expecting that can help anyone facing the same problem.

    0 讨论(0)
提交回复
热议问题