AttributeError: module 'torch' has no attribute 'autocast_mode' when importing spacy #9855
-
How to reproduce the behaviourHi, i am getting the following error when importing spacy:
The import still worked a few weeks ago, the only change in my environment i can think of, is installing the huggingface transformer library. I tried removing and reinstalling spacy, but that didn't help. Not sure if this helps, but when importing spacy i get the following message:
Your Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Try uninstalling all torch packages ( |
Beta Was this translation helpful? Give feedback.
Try uninstalling all torch packages (
torch
,torchvision
,torchaudio
) and installing again from scratch following their guide: https://pytorch.org/get-started/locally/