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

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

    If you're using virtualenv*, it might be a good idea to double check which pip you're using.

    If you see something like /usr/local/bin/pip you've broken out of your environment. Reactivating your virtualenv will fix this:

    VirtualEnv: $ source bin/activate

    VirtualFish: $ vf activate [environ]

    *: I use virtualfish, but I assume this tip is relevant to both.

提交回复
热议问题