Good day. I am interested in the following question: how to understand which version of python in Visual Studio do you use? The one you installed in advance && separately (2.7) or the one that the Python Tools for Visual Studio extension provides? (IDE version used: Visual Studio 2015)
1 answer
You can see the Python
environment in the Python Environments
section.
It can be opened through Tools->Python Tools->Python Environments
. In the Python Environments
window there will be a list of available environments. The bold environment is the default environment for projects. The screenshot below shows such an environment with the inscription under the list This is the default environment for new projects
For each environment, you can see the path to its interpreter by selecting it in the list of environments.
For each project, you can choose an environment for interpretation. In the Solution Explorer
window, Python
projects have the Python Environments
item, where you can add the environment from those installed in the Python Environments
section, and also select the current environment for execution. It will be highlighted in bold.