close

[Solved] OSError: [E050] Can’t find model ‘en_core_web_sm’. It doesn’t seem to be a shortcut link, a Python package or a valid path to a data directory

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to load en_core_web_sm but I am facing this error OSError: [E050] Can’t find model ‘en_core_web_sm’. It doesn’t seem to be a shortcut link, a Python package or a valid path to a data directory in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

I am trying to load en_core_web_sm but I am facing this error.

OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.
  1. How To Solve OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory Error ?

    To Solve OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory Error You need to just download this packages using this command: python -m spacy download en_core_web_lg and python -m spacy download en_core_web_sm And then Run this command: python -m spacy download en and my error solved.

  2. OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory

    To Solve OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory Error You need to just download this packages using this command: python -m spacy download en_core_web_lg and python -m spacy download en_core_web_sm And then Run this command: python -m spacy download en and my error solved.

Solution 1: Download this packages

You need to just download this packages using this command.

python -m spacy download en_core_web_lg
python -m spacy download en_core_web_sm

And then Run this command.

python -m spacy download en

Solution 2: This worked for me

This code is worked for me.

import en_core_web_sm

nlp = en_core_web_sm.load()

Solution 3: spacy.load like this way.

First of all just copy full path of en_core_web_sm. In my case path is C:\Users\ssc\AppData\Local\Continuum\anaconda3\Lib\site-packages\en_core_web_sm\en_core_web_sm-2.2.0

Then spacy.load like this way.

nlp = spacy.load(r'C:\Users\ssc\AppData\Local\Continuum\anaconda3\Lib\site-packages\en_core_web_sm\en_core_web_sm-2.2.0')

And my error solved.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment