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

前端 未结 8 2095
旧时难觅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...

提交回复
热议问题