Actually, I wanted to create my first Django project. After I did some coding in the cmd, I opened the code using Visual Studio Code.
I selected the Python interpreter on the status bar, and then I changed it to the Python interpreter installed in my digital environment. After that, I got message that linter Pylint was not installed. After I installed that, these errors occurred.
This solution worked for me. I am just repeating it here:
pyvenv.cfg
file in the Virtual environment folderinclude-system-site-packages
to true
and save the changeI did encounter the same error when I wanted to install a Python module.This is because you want to install a user-specific module in your project, and the virtual environment user-site packages are not visible. The --user
installs a Python package for the current user rather than the users of the system. You can use this:
pip install <Python package>
instead of pip install --user <python package>
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With