Install a Python package into a different directory using pip?

后端 未结 16 2428
借酒劲吻你
借酒劲吻你 2020-11-22 05:55

I know the obvious answer is to use virtualenv and virtualenvwrapper, but for various reasons I can\'t/don\'t want to do that.

So how do I modify the command

16条回答
  •  孤街浪徒
    2020-11-22 06:03

    pip install /path/to/package/

    is now possible.

    The difference with this and using the -e or --editable flag is that -e links to where the package is saved (i.e. your downloads folder), rather than installing it into your python path.

    This means if you delete/move the package to another folder, you won't be able to use it.

提交回复
热议问题