China Brahma
China Brahma

Reputation: 7

How do I fix this, I was trying to create python virtual environment

After running this command (OS = Windows 11):

virtualenv -p install python venv

I'm getting this error:

RuntimeError: failed to find interpreter for Builtin discover of python_spec='install'

I had multiple Python versions installed. I deleted them all, reinstalled Python 3.12, and virtualenv package.

But now I am getting the error above while trying to create a virtual Python environment.

Upvotes: -1

Views: 103

Answers (1)

Kirill Ilichev
Kirill Ilichev

Reputation: 1289

Command

virtualenv -p install python venv

is incorrect.

Correct command would look like:

virtualenv -p python venv

Upvotes: 2

Related Questions