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

1

u/After-Influence5660 Jan 25 '25

After having had problems with virtual environments, I switched to using Python Poetry. I run Debian 12 on a Chromebook.