Configuring VS Code to find Anaconda's Python Interpreter ![]() The installation has completed once the Extension shows 'Uninstall' in the Extension browser. The 'Apple Development/XCode Command Line Tools' installation will proceed. If the prompt is displayed, click Install:Ĭlick Agree on the 'Apple Command Line Tools/XCode License Agreement': If no prompt is displayed, skip to the Configuring VS Code to find Anaconda section of this document. Installing the Apple Development Command Line Tools / XCodeĪt this point, Mac OS may need to install some additional components to make this work. ![]() Click the Install button to add this extension to VS Code: This screenshot shows what the proper Microsoft Python extension looks like, note the verified checkmark. Be certain the VS Code Python extension you install is from Microsoft and listed with a blue checkmark next to the publisher name. There are other Python extensions in the Extension Marketplace. To launch VS Code, hold down the Command ⌘ key on your keyboard and press the Space Bar and type 'Visual' in the search field, click on the 'Visual Studio Code' icon: If VS Code needs to be installed, follow the steps in the Mac - Install VSCode documentation. This section of the document assumes VS Code has been installed on the machine. Visual Studio Code needs some configuration to find the default Anaconda Python environment. In the example shown here, this will launch the Mac Terminal with the 'base' Python environment loaded, the beginning of the prompt will show (base) to indicate this: Mac OS may give a security warning about this action. To do this, launch Anaconda Navigator.įrom Anaconda Navigator, click on the 'Environments' tab on the left:Ĭlick on the Play button and then click on 'Open Terminal': To make management of various environments within Python/Anaconda easier, the Anaconda Navigator offers the ability to manually configure an environment for a specific Terminal (or other program) launch. Launching a specific Python/Anaconda Environment using Anaconda Navigator The beginning of the prompt line in Terminal will show '(base)' (or another Python environment, if applicable). Launch a Mac Terminal window, to do this, hold down the Command ⌘ key on your keyboard and press the Space Bar and type 'Terminal' in the search field, click on the 'Terminal' icon: If Anaconda Navigator detects an available update, it will prompt to install the update, click `Yes to automatically update:Ĭonfirming Terminal has the base Python/Anaconda EnvironmentĪnaconda Navigator will create scripts so that the 'base' environment is always loaded when the Mac Terminal is launched. Initial startup may take some time to complete. To launch Anaconda Navigator, hold down the Command ⌘ key on your keyboard and press the Space Bar and type 'Anaconda' in the search field, click on the 'Anaconda-Navigator' icon:Īnaconda Navigator will launch. If the machine has Anaconda installed, only use conda commands, not pip commands. If Anaconda is installed on a machine, the conda and pip package managers can conflict leading to larger and more complex issues. ![]() The built-in interpreter of the standalone version doesn't currently support installing packages beyond the common scientific libraries bundled with it, so most users will want to have an external Python environment to run their own code, like with any other IDE.Īlso, the standalone installers don't yet work with third-party plugins, so users needing them should use Spyder through a Conda-based distribution instead.įor a detailed guide to this and the other different ways to obtain Spyder, refer to our full installation instructions, and check out our release page for links to all our installers.Various online sources will indicate the use of pip to install packages or fix various issues. You can also try out Spyder right in your web browser by launching it on Binder. We offer standalone installers on Windows and macOS, and as our Linux installer is are still experimental, we currently recommend the cross-platform Anaconda distribution for that operating system, which includes Spyder and many other useful packages for scientific Python. Want to join the community of scientists, engineers and analysts all around the world using Spyder?Ĭlick the button below to download the suggested installer for your platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |