![]() Or if you prefer '>ext install', press enter, search for 'Python Extended'. Press F1, search for 'ext install' followed by the extension name, in this case 'ext install Python Extended' without the '>'. Restart a terminal and Visual Studio Code and see if you are now running Anaconda python. Run vscode and in a python file, type the name of the method to complete and press tab or enter on selection. If you do not have Anaconda bin first, you can add this to your ~/.bashrc file:Įxport PATH="/Users/jlzhang/anaconda/bin:$PATH" Users/jlzhang/anaconda/bin:/usr/local/bin:/usr/bin:/bin The output should look like this with Anaconda bin first: ![]() The version of python that is called depends on which version of python comes up in your PATH variable first. If it turns out to be another version of python you are accessing inside Visual Studio Code that doesn't have numpy installed, then that's what you need to fix. Is the printed version Anaconda? If you installed Anaconda python, it should come with numpy already installed. You may not have numpy installed on the version of python you are running. Upon hitting Ctrl+Shift+B I get the following error import numpy as npĪlso, is there python interactive window in VS Code? How to open it. I'm trying to setup Visual Studio Code for python developmentĪnd in a new file I have the following code import numpy as np
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |