Visual Studio 2017 Crashes when trying to open Python Environment window from Tools

Murtaza 6 Reputation points
2021-04-13T09:55:09.067+00:00

I am already using Anaconda Navigator which uses Python 3.8 (it is working fine).

I tried installing Python from Visual Studio Installer and after installation I tried to open Python Environment window from Tools.
The program just crashes and Visual Studio is closed.

Is there a clash of Python Path somewhere (between Anaconda Navigator and Visual Studio)?

Also, if I try to open a Python project in Visual Studio, I get the following message

87391-2021-04-13-11-44-45-start-page-microsoft-visual-st.png

It shows Unsupported Python Version 3.8.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,876 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,141 questions
{count} vote

3 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 30,816 Reputation points Microsoft Vendor
    2021-04-15T07:51:45.723+00:00

    Hello @Murtaza ,

    Welcome to Microsoft Q&A forum.

    As the prompt window mentioned, Visual Studio 2017 doesn’t support Python 3.8 currently.

    Please kindly check this two screenshots to see the supported Python version for Visual Studio 2017 and Visual Studio 2019:

    88087-image.png

    88154-image.png

    Besides, please also kindly check this thread: No Official Python 3.8 Support for Visual Studio 16.4.

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

  2. Murtaza 6 Reputation points
    2021-04-15T07:59:37.557+00:00

    Thank You for the reply! However, as I mentioned, I am fully aware that Visual Studio 2017 does not support Python 3.8. But I also have Conda Environments for Python 3.7 and 3.6 (installed using Anaconda Navigator). Visual Studio does detect these environments as shown here,

    88127-image.png

    But then, it shows only this and then Visual Studio crashes. I can't work anymore!
    I don't understand what seems to be the problem.


  3. Pablo Nuñez 1 Reputation point
    2021-08-25T19:08:53.907+00:00

    Hi, I have a possible solution for you, I have been working in Anaconda3 with Spyder in Python 3.8.5 version. When I try to open the Environments window in Visual Studio 2017 (Tools -> Python -> Python Environments) my Visual just crash and restart. My solution was to modify the Visual Studio Installer and only select the Python 3 for 64-bit and 32-bit. 126426-image.png

    Then in the Visual Studio app go to (Tools -> Python -> Diagnostic info..) and in the Experimental window uncheck Automatically detect Conda Environments and Use Conda package manager ... 126388-image.png

    Finally, try to open again the Python environments and prove to select different packages in the visual studio installer for Python at your convenience. I hope to be useful for you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.