question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with spacy.load('de')

See original GitHub issue

How to reproduce the problem

import torch
import torch.nn as nn
import torch.optim as optim
from torchtext.datasets import Multi30k
from torchtext.data import Field, BucketIterator
import numpy as np
import spacy
import random
from torch.utils.tensorboard import SummaryWriter  # to print to tensorboard

Libraries imported, when i load dataset using the function with spacy, as below,

Error comes while running below code:

spacy_ger = spacy.load("de")
spacy_eng = spacy.load("en")

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

Your Environment

  • Operating System: Windows 10
  • Python Version Used: 3.7
  • spaCy Version Used:2.3.0
  • Environment Information: none

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
adrianeboydcommented, Jul 15, 2020

Python doesn’t register packages that have been installed after it started running, so you need to restart the runtime in the notebook in order for it to be able to find the new models.

0reactions
github-actions[bot]commented, Nov 2, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Models & Languages · spaCy Usage Documentation
spaCy is a free open-source library for Natural Language Processing in Python. It features NER, POS tagging, dependency parsing, word vectors and more....
Read more >
SpaCy OSError: Can't find model 'en' - Stack Overflow
After running python -m spacy download en , when I try to load the en model, I got error OSError: [E049] Can't find...
Read more >
spacy - PyPI
Get a custom spaCy pipeline, tailor-made for your NLP problem by spaCy's core developers. ... pip install -U pip setuptools wheel pip install...
Read more >
Install and use spacy models - ProjectPro
Step 1 - Install Spacy using pip command · Step 2 - Download best matching version of specific model for our spacy installation...
Read more >
Spacy.load('en') ERROR by Alexander Ermushev
Hi guys,I'm trying to use spaCy library but get error:self.nlp = spacy.load('en') OSError : [E050] Can't find model 'en'. It doesn't seem to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found