title: Getting a Spacy error: No module named 'spacy.pipeline.pipes'; 'spacy.pipeline' is not a package
body: <p>I'm trying to test a model that is working in another machine, but when I try to import it to my notebook, I get this error: 
  ModuleNotFoundError: No module named 'spacy.pipeline.pipes'; 'spacy.pipeline' is not a package</p>
  
  <p>We have installed:
  Spacy 2.0.18 (Frozen version, Not updatable whatsoever) </p>
  
  <p>And I'm importing:</p>
  
  <pre><code>import spacy
  import thinc
  import unidecode
  import nltk
  from spacy.vocab    import Vocab
  from spacy.language import Language
  from spacy.lang.pt  import Portuguese
  from spacy.lang.en  import English
  from spacy.pipeline import EntityRecognizer
  ner = EntityRecognizer(nlp.vocab)
  nlp = Language(Vocab())
  nlp = Portuguese()
  # Load NER Model
  NER_MODEL = pickle.load( open("/ner_model_v022_epoch=706_loss=09o76364626.pkl", "rb" ) )
  </code></pre>
  
  <p>And I get the following error:</p>
  
  <pre><code>---------------------------------------------------------------------------
  ModuleNotFoundError                       Traceback (most recent call last)
  &lt;ipython-input-12-83d4770d3e3e&gt; in &lt;module&gt;
  
  ---&gt; 40 NER_MODEL = pickle.load( open("/ner_model_v022_epoch=706_loss=09o76364626.pkl", "rb" ) )
  
  ModuleNotFoundError: No module named 'spacy.pipeline.pipes'; 'spacy.pipeline' is not a package
  </code></pre>
  
  <p>Any ideas why this might be happening? Already installed everything again from 0 but keeps giving me the same error.</p>
  
  <p>Any help will be greatly appreciated.</p>