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

前端 未结 8 2074
旧时难觅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条回答
  •  -上瘾入骨i
    2020-11-28 01:35

    On OSX(mac), assuming a project folder called /var/myproject

    1. cd /var/myproject
    2. Create a file called setup.cfg and add [install] prefix=
    3. Run pip install -t .

提交回复
热议问题