Skip to content Skip to sidebar Skip to footer

Need Help!!! OSError: [E050] Can't Find Model 'en_core_web_trf'. It Doesn't Seem To Be A Python Package Or A Valid Path To A Data Directory

I'm trying to deploy an app in heroku, and it completes sucessfully, but when i click to view the app it shows this error in a red box!! OSError: [E050] Can't find model 'en_core_

Solution 1:

I created several virtual enviroments and I noticed, that in last two of them model 'en_core_web_trf' was not installed properly with this command: python3 -m spacy download en_core_web_trf , so I got the same error. I don't know why, but when i tried python instead of python3, it worked: python -m spacy download en_core_web_trf. If it is ok, you will see this text:

✔ Download and installation successful You can now load the package via spacy.load('en_core_web_trf')

Another interesting point is that I was unable to install model in one virtual enviroment while my application was running in another virtual enviroment.

I would be very grateful if someone could explain to me why is it happening, and why python installs model for spacy properly, but python3 doesn't. (I use Kubuntu linux)

Upd:
It looks like you have no model, or it installed incorrectly. Try to check your model's version with pip show en_core_web_trf if you are using virtual environment, or reinstall spacy and model.


Post a Comment for "Need Help!!! OSError: [E050] Can't Find Model 'en_core_web_trf'. It Doesn't Seem To Be A Python Package Or A Valid Path To A Data Directory"