title: pydantic BaseModel not found in Fastapi
body: <p>I have <a href="/questions/tagged/python3" class="post-tag" title="show questions tagged &#39;python3&#39;" rel="tag">python3</a> 3.6.9 on Kubuntu 18.04. I have installed <a href="/questions/tagged/fastapi" class="post-tag" title="show questions tagged &#39;fastapi&#39;" rel="tag">fastapi</a> using <code>pip3 install fastapi</code>. I'm trying to test drive the framework through its official documentation and I'm in <a href="https://fastapi.tiangolo.com/tutorial/sql-databases/" rel="noreferrer">the relational database section</a> of its guide.</p>
  
  <p>In <code>schemas.py</code>:</p>
  
  <pre><code>from typing import List
  
  from pydantic import BaseModel
  
  class VerseBase(BaseModel):
      AyahText: str
      NormalText: str
  
  class Verse(VerseBase):
      id: int
  
      class Config:
          orm_mode = True
  </code></pre>
  
  <p>VS code highlights an error in <code>from pydantic import BaseModel</code> and it tells that: <code>No name 'BaseModel' in module 'pydantic'</code>. Additionally, when I try to run <code>uvicorn main:app reload</code>  I have gotten the following error:</p>
  
  <blockquote>
  <pre><code>File "./main.py", line 6, in &lt;module&gt;
     from . import crud, models, schemas
  ImportError: attempted relative import with no known parent package
  </code></pre>
  </blockquote>
  
  <p>I have tried to renstall <code>pydantic</code> using <code>pip3</code> but it tells me that:</p>
  
  <pre><code>Requirement already satisfied: dataclasses&gt;=0.6; python_version &lt; "3.7" in ./.local/lib/python3.6/site-packages (from pydantic) (0.7)
  </code></pre>