PTVS icon indicating copy to clipboard operation
PTVS copied to clipboard

The Python installed from Microsoft Store couldn't view installed packages when first use the environment.

Open linette-zyy opened this issue 4 years ago • 5 comments

Environment Build of Visual Studio: 17.1.0 Preview 2.0 [31904.282.main] Build of Python Package: 17.0.21295.2 OS version: Windows 11 Enterprise 21H2 Python install from Microsoft Store

Steps to Reproduce

  1. Create a new python application
  2. Expand the one Python Environment in "Python Environments" node
  3. Check the package list

Expected behavior All the packages should listed image

image

Additional context and screenshots The Python installed from Microsoft Store couldn't view installed packages when first use the environment. image image

After I restart the VS, this issue is not reproduce.

linette-zyy avatar Nov 05 '21 02:11 linette-zyy

This issue also can reproduce on today's environment. image image After restart the VS, we can view installed packages.

linette-zyy avatar Nov 15 '21 04:11 linette-zyy

I can't repro this. @linette-zyy Could you verify this again on the latest build?

StellaHuang95 avatar Jun 08 '22 19:06 StellaHuang95

image @StellaHuang95 In today's build, I can't repro this when install packages(requests) in the 'Packages(PyPI)' search box install_from_MS But i can repro this when install packages(requests) in the command prompt. After restart VS, 'requests' just appear in the list install_from_MS_commandline

linette-zyy avatar Jun 09 '22 08:06 linette-zyy

Could be a race condition which might make repro'ing tricky.

AdamYoblick avatar Feb 02 '23 22:02 AdamYoblick

In today's build 17.6.0 Preview 2.0 [33501.332.main], Python Package: 17.0.23055.1, pip install requests can be updated but pip uninstall requests no update. (Python installed from the Microsoft Store)

image

ttSpace avatar Mar 02 '23 06:03 ttSpace