Use an external pip server¶
If your python package is available on the public pip repository you can simply add that package to your
requirements.txt. In some cases you need an external repository instead. There are two ways of doing this.
Adding an extra index url¶
One thing you can do is add an extra pip repository to your configuration. This way pip will search for the package in both repositories.
You can do this by adding the following to your ubiops.yaml configuration file.
Then simply add the package name to the requirements.txt like you normally would.
Duplicate package names
The only problem with this is that pip cannot really handle packages from 2 different indexes with the same name.
Adding package links to requirements.txt¶
The second method is to add the complete package url to the requirements.txt file.