Private PyPI containing package with same name

╄→尐↘猪︶ㄣ 提交于 2019-12-02 06:36:47

Use a --find-links direct link to the index page listing those packages:

pip install --find-links <Private_PyPI_URL>/package_name package_name

but you really want to use an internal version number (append _companyname_1, etc.) and pin to those version numbers. See Specifying Your Project’s Version in the Packaging Guide.

That way you can still switch between your version and the publicly released version simply by switching version numbers.

Another thing you want to do is use a proper pip requirements file to pin version numbers, and version-control that file. You can include indexes and find-links urls in that file too.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!