5

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

baldr
  • 2,891
  • 11
  • 43
  • 61
syakirin
  • 51
  • 1
  • 1
  • 2
  • Does this answer your question? [.ps1 cannot be loaded because the execution of scripts is disabled on this system](https://stackoverflow.com/questions/16460163/ps1-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-syste) – funie200 Oct 09 '20 at 12:08
  • Maybe [this](https://stackoverflow.com/questions/30604952/pip-default-behavior-conflicts-with-virtualenv) – RandomB Oct 13 '20 at 12:56

2 Answers2

11

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.
Joel Oduro-Afriyie
  • 1,563
  • 14
  • 13
-3

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

HsnVahedi
  • 1,271
  • 3
  • 13
  • 34
  • 1
    This is a terrible workaround. The whole point of these tools is to avoid installing globally – xyhhx May 08 '22 at 04:48