
You can also select Add Environment from the environment drop-down in the Python toolbar. To change the environment for a project, right-click the Python Environments node and select Add Environment. Visual Studio also uses that environment for debugging, import and member completions, syntax checking, and any other tasks that require language services that are specific to the Python version and a set of installed packages.Īll new Python projects in Visual Studio are initially configured to use the default global environment, which appears under the Python Environments node in Solution Explorer: Applies to: Visual Studio Visual Studio for Mac Visual Studio CodeĪll code in a Python project runs within the context of a specific environment, such as a global Python environment, an Anaconda environment, a virtual environment, or a conda environment.
