I'm trying to make PyLint automagically use correct conda environment inside vscode
but still getting import errors: [pylint] E0401:Unable to import 'django'
, although:
You have to install pylint
in this conda environment.
Activate given environment with activate env_name
(Windows) or source activate env_name
.
Install pylint
in this environment:
conda install pylint # or 'pip install pylint'
Finally, restart vscode.
Source: https://github.com/DonJayamanne/pythonVSCode/wiki/Troubleshooting-Linting