question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create virtual environment permanently fails when Base interpreter is Python 3.8

See original GitHub issue

Describe 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”: image After a few seconds process finishes with conflicting messages between “Background tasks” window and “Output” window: image

Steps to Reproduce

  1. Create some Python Solution.
  2. Place requirements.txt into its dir so VS can detect it.
  3. Save and reopen the Solution in VS.
  4. 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:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
huguesvcommented, Apr 9, 2020

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.

0reactions
huguesvcommented, Jun 8, 2020

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found