ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv

Viewed 4006

Actually, I wanted to create my first django project. After I did some coding in the cmd then I opened the code using visual studio code. I selected the python interpreter on the status bar, then I changed it to the python interpreter installed in my digital environment. After that, I got message that linter pylint is not installed. After I installed that, these errors occurred.

enter image description here

2 Answers

This solution worked for me. Just repeating it here:

1. Go to the `pyvenv.cfg` file in the Virtual environment folder
2. Set the `include-system-site-packages` to `true` and save the change
3. Reactivate the virtual environment.

As described in this issue, you have to set "global module installation" to be true.

You can do that from File > Preferences > Settings:

enter image description here

Related