kmkurn / pytorch-crf

(Linear-chain) Conditional random field in PyTorch.
https://pytorch-crf.readthedocs.io
MIT License
935 stars 151 forks source link

No module named 'torchcrf' #74

Closed anjani-dhrangadhariya closed 3 years ago

anjani-dhrangadhariya commented 3 years ago

I have been using pytorch-crf library for some time and everything worked perfectly fine. Suddenly, I see the following message.

Issue:

Using TensorFlow backend.
Traceback (most recent call last):
  File "/home/train.py", line 43, in <module>
    from torchcrf import CRF
ModuleNotFoundError: No module named 'torchcrf'

Module 'torchcrf' not found even after installing it.

Upon pip install pytorch-crf, I get

Requirement already satisfied: pytorch-crf in ./anaconda3/envs/lib/python3.6/site-packages (0.7.2)

here is the result for pip list comment: pytorch-crf 0.7.2