microsoft / PTVS

Python Tools for Visual Studio
https://aka.ms/PTVS
Apache License 2.0
2.53k stars 673 forks source link

Unable to install suggested module when using IPython interactive mode. #6853

Open ttSpace opened 2 years ago

ttSpace commented 2 years ago

Describe the bug

image

Python install from Microsoft Store.

Steps to Reproduce

  1. Create a Python Application project.
  2. Open "Python Environments" window->"Overview" page to enable "Use IPython interactive mode".
  3. Open interactive window to type "1".
  4. Follow the info to install IPython. (IPython installed successfully.) image
  5. Close the previous interactive window and create a new one, then enter "1".
  6. Follow the info to install the module. Note: The previous module prompt is ipykernel. image

Additional context and screenshots

Installed IPython.kernel according to the info, but failed.

Output info

----- Installing 'IPython.kernel' -----
ERROR: Could not find a version that satisfies the requirement IPython.kernel (from versions: none)
ERROR: No matching distribution found for IPython.kernel
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the 'C:\Users\vting\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.
----- Failed to install 'IPython.kernel' -----
cwebster-99 commented 1 year ago

Dependent on fixes in #7118

ttSpace commented 2 weeks ago

I can repro in today's build.

Image