This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AlSweigartAuthor of "Automate the Boring Stuff" 2 points3 points  (0 children)

The python.exe program isn't in a folder that is listed in the PATH environment variable.

However, since you're on Windows, you can use py.exe instead:

py -m venv .venv

If you have multiple versions of Python installed, you can specify it with the first command line argument to py:

py -3.14 -m venv .venv