Running on AWS I would usually define a step:
@batch(cpu=1, memory=5000)
@conda(libraries={'pandas': '1'})
@step
def hello(self):
do stuff...
However, I am working with deeplearning libraries (MXnet/tensorflow/pytorch), and they are not particularly up to date on conda and it is best to install with pip.
How do I define pip dependancies for this step?
Update: as @Savin states in the comments, Metaflow now has native pip support with the
@pypi
decoratorMetaFlow does natively not offer support for pip installs (discussion here). However, I made an @pip decorator which you can use (based on a comment in that issue):