![]() ![]() If using a Terminal or PS Shell then close and reopen and check Path to make sure it is included. One note is that Windows does not have the PATH variable take effect until you restart the terminal. Your Anaconda installation directory may differ. Under the Path Variable, Edit and browse to the specific Anaconda directory that you want VSCode to use and add to PATH, I needed to Add the following: C:\Users\happy\Anaconda3\Ĭ:\Users\happy\Anaconda3\Library\mingw-w64\bin\ So even if you ran the pip install for an environment VS Code could be looking at a different one.īest approach was to make sure that VS code had the correct python environment selected and that same environment is in the system PATH (under System Properties -> Advanced -> Environmental Variables) Clicking on that area allows to set the environment. Note that VS Code picks up the first python env it see when installed, the bottom left of the screen indicates which env is being used. Pretty much gave the same error so it seems that VS Code is unable to access the python modules. Then VS Code was happy, but that did not fix the issue as running & C:/Users/happy/Anaconda3/python.exe -m pip install -U pylint I was able to overcome the issue by opening the Anaconda installation directory and running pip install pylint I ran into this issue with Visual Studio Code installing pylint from the VS Code prompt.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |