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.
Asked
Active
Viewed 1.2k times
5
-
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 Answers
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
-
1This worked for me. I'm running Windows 11 > Git Bash (Windows Terminal Version: 1.16.10262.0). – user1653042 Feb 17 '23 at 16:28
-3
As described in this issue, you have to set "global module installation" to be true.
You can do that from File > Preferences > Settings:

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