title: ImportError: cannot import name 'FastAPI' from partially initialized module 'fastapi' : circular import
body: <p>My initial project setup was working fine but, after installing psutil, I started getting a circular import error for fastApi. I tried uninstalling psutil but, the error persists.</p>
  <pre><code>File &quot;.\project.py&quot;, line 1, in &lt;module&gt;
          from fastapi import FastAPI
        File &quot;c:\users\nikhi\pycharmprojects\fastapi\venv\lib\site-packages\fastapi\__init__.py&quot;, line 7, in &lt;module&gt;
          from .applications import FastAPI as FastAPI
        File &quot;c:\users\nikhi\pycharmprojects\fastapi\venv\lib\site-packages\fastapi\applications.py&quot;, line 4, in &lt;module&gt;
          from fastapi import routing
        File &quot;c:\users\nikhi\pycharmprojects\fastapi\venv\lib\site-packages\fastapi\routing.py&quot;, line 30, in &lt;module&gt;
          from fastapi.encoders import DictIntStrAny, SetIntStr, jsonable_encoder
        File &quot;c:\users\nikhi\pycharmprojects\fastapi\venv\lib\site-packages\fastapi\encoders.py&quot;, line 9, in &lt;module&gt;
          from fastapi import FastAPI
      ImportError: cannot import name 'FastAPI' from partially initialized module 'fastapi' (most likely due to a circular import) 
  </code></pre>