Create virtual environment permanently fails when Base interpreter is Python 3.8
See original GitHub issueDescribe the bug
After I open a Solution with requirements.txt
in its dir Visual Studio detects it and shows a badge with the “Create virtual environment” link. I click it, change env
to venv
and click “Create”:
After a few seconds process finishes with conflicting messages between “Background tasks” window and “Output” window:
Steps to Reproduce
- Create some Python Solution.
- Place
requirements.txt
into its dir so VS can detect it. - Save and reopen the Solution in VS.
- Continue as described in “Describe the bug” section above.
Expected behavior A successfully created Python Virtual Environment.
Configuration information (If you are providing a diagnostics file (see below), skip this section) VS Version: 16.5.3 PTVS version: 16.5.20041.1-16.0 Python version: 3.8
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Failed to create virtual environment in PyCharm
It shows "failed to create a virtual environment pycharm" while I trying to replace with python(3.10) as Interpreter. This is my step: ...
Read more >Failed to create interpreter venv\bin\python not found
Something weird with the environment I think. Please try creating a new virtualenv from the terminal using the same interpreter. https:// ...
Read more >Manage Python environments and interpreters - Visual ...
Use the Python Environments window to manage global, virtual, and conda environments. Install Python interpreters and packages and assign ...
Read more >Configure a virtual environment | PyCharm Documentation
Create a virtualenv environment. Do one of the following: Click the Python Interpreter selector and choose Add New Interpreter.
Read more >venv — Creation of virtual environments
A virtual environment is created on top of an existing Python installation, known as the virtual environment's “base” Python, and may optionally be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the info. It worked for me. Then I noticed that your Python 3.8 is the Windows Store install and mine was the python.org install. We’ll have to try this again with the store version.
@LyonsDo can you please file a new bug, include details on which base environment you are using when creating the virtual env and attach the diagnostics (see instructions in the bug template). Thanks!