How to install python package with a different name using PIP

前端 未结 10 2056
忘了有多久
忘了有多久 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:27

    I'm guessing that at least one of the packages you refer is not installed from https://pypi.org/ since they enforce unique names for the packages; this means you're installing that package from source, which means you also have the freedom of changing its name to whatever you want. You would do this by changing the setup.py file in the root of the offending package.

提交回复
热议问题