Lesson 2: how to ensure fast.io is installed in huggingface?

My guess is that hugging face is expecting your dependencies from pip and not conda.

As I understand it, when you export your dependancies from conda/mamba you put them in a environment.yml file. See the mamba docs.

Hugging face is expecting a requirements.txt file so the simplest thing to do would be to create a pip virtual environment and install all the dependancies to that and then export them to a requirements.txt file and push that to hugging face.

Hopefully that will get you up and running! :slightly_smiling_face:

As I understand it you can use pip inside a conda env but you can’t install conda packages inside a pip env, as they are two different package managers.

However, using pip to install packages as part of a conda env is discouraged
Only after conda has been used to install as many packages as possible should pip be used to install any remaining software.

1 Like