Reputation: 103
I build a pypiserver in my computer and uploaded a project,then i tried to install this project in another computer,but i uploaded source of the project without dependencies.
so when i install this project pip try to install all dependencies from my own server.
then:Error: Not Found for url: http://xxx.xxx.xxx.xxx/simple/gunicorn/
so,is there some way to specify the project in my own pypiserver and dependencies to two diffrent pypi source when i use pip install -i my-pypi-server
?
Upvotes: 2
Views: 117
Reputation: 23024
You can specify --extra-index-url
when you run pip install
so that the project dependencies can be resolved outside your local repository:
pip install -i my-pypi-server --extra-index-url pypi.douban.com/simple <library>
Upvotes: 2