i have googled for an answer but i did not find anything really matching my needs (but i might be wrong).
We have a local Pypi repository that we need to use for our dependencies.
I am trying to use dependency_links
, but apparently that's deprecated, plus, this is not working.
I have found lots of confusing posts about github.com repositories, which are not what i need to achieve (that's pretty easy); my problem is using another pypi index-url for our packages.
Thanks
答案 0 :(得分:0)
从私有存储库创建pip安装包的正确方法是传递--extra-index-url
选项(或者,如果您甚至不想安装pypi.python.org中的任何内容,--index-url
)到pip install
命令,例如:
pip install --extra-index-url https://local-pypi.example.com/simple private-pkg