How to install python package with a different name using PIP

前端 未结 10 2071
忘了有多久
忘了有多久 2020-12-09 07:56

When installing a new python package with PIP, can I change the package name because there is another package with the same name?

Or, how can I change the existing p

10条回答
  •  感动是毒
    2020-12-09 08:05

    Use virtualenv if you don't need both package for the same project. With virtualenv you can have different version of packages as well.

    Another way maybe the site-packages as mentioned already.

    https://virtualenv.pypa.io/en/stable/

    http://docs.python-guide.org/en/latest/dev/virtualenvs/#lower-level-virtualenv

提交回复
热议问题