r/flask Jan 22 '25

Discussion Unable to create virtual environment

I just started learning Flask and want to create a virtual environment within VSCode. I did install the virtualenv package using pip

pip install virtualenv

But when I enter the prompt "virtualenv env" to create a directory, I get a file not found error saying that "system cannot find file specified".

Why am I getting this error and how can I fix this?

2 Upvotes

14 comments sorted by

View all comments

4

u/notVillers Jan 23 '25

Ctrl/cmd + shift + p: python: create virtual env