How to fix the error ERROR =Can not perform a '--user' install. User site-packages are not visible in this virtualenv. when using Python venv (virtual environment).

  1. Open the pyvenv.cfg file in the virtual environment folder.
  2. Change include-system-site-packages = false to true.
  3. Restart the virtual environment.