Visual Studio 2022 Crashes

John Zhang 1 Reputation point
2022-05-17T17:00:06.337+00:00

Dear Support,

I noticed the differences between 'Command Prompt' & Powershell to install/list python packges but not be able to understand the reason hebind it. Most importantly, not sure how to make the installed py package availble to my Visual Studio py project

Powershell was used to install pyodbc successfully and it is proved by pip3 show pyodbc
PS C:\Users\johnz\AppData\Local\Programs\Python\Python37> pip3 show pyodbc
Name: pyodbc
Version: 4.0.32

However, under command prompt
C:\Users\johnz\AppData\Local\Programs\Python\Python37>pip3 show pyodbc
WARNING: Package(s) not found: pyodbc

Therefore pyodbc is not available in my VS py project

VS 2022 CRACHES when View All Python Environments is clicked
202845-image.png

Please advise ...

Thanks,
John

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,573 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,354 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 44,621 Reputation points
    2022-05-17T18:15:29.243+00:00

    PowerShell and CMD are two different shells.

    Check the environment variables while running both of them. Is there a difference? What about your pip.conf file? Does it contain all the necessary information you need to function in a CMD shell?

    How was PowerShell used to install Python packages? Did it merely run the DOS commands (i.e. the same commands that you would have run if you installed from the CMD shell)?

    I think you should add the necessary tags to include the Visual Studio and maybe the Python SMEs.

    0 comments No comments