I’ve tried to use pytorch-mertic-learning module, but after install it with the command:
conda install pytorch-metric-learning -c metric-learning
I couldn’t import it. I also notice that if I’m searching for conda list in terminal I got the following result:
These import errors are often created, if your Jupyter notebook uses a different environment (and thus kernel) as the one you’ve installed the package in.
Make sure to select the right environment in your notebook or restart Jupyter in your virtual environment.
This should usually work. However inside your notebook you should have a menu where you can select different kernels.
I’ve seen Jupyter sometimes select the system Python installation instead of the conda one, so I stick to put everything in a virtual environment.