I have just installed pandas in an environment using
conda. Afterwards I cannot
import torch getting the error:
ModuleNotFoundError: No module named 'torch'
Python 3.6.8 and my
0.4.1. Do you have any idea of what is the possible source of them problem?
Pandas shouldn’t interfere with PyTorch, so that’s a bit strange.
Did you make sure to activate the same conda environment in case you were using one?
EDIT: Did you see any message of uninstalling PyTorch during the Pandas installation?
Yes it is the same environment. These are the things happened during installation:
qt package has been suppressed, which I am not sure is relevant.
numpy is downgraded from
1.14.2 which I also think is not relevant.
The only thing might be relevant is it has updated some of the packages such as
If the Python version was updated, I would recommend to uninstall the old PyTorch version and reinstall the one matching your current Python version.
Thank you, I have tried
Pytorch 1.0 and I’ve installed
pandas and it seems they both work.
Good to hear it’s working!