DEV Community

Discussion on: Dead Simple Python: Virtual Environments and pip

Collapse
 
codemouse92 profile image
Jason C. McDonald

That error has nothing to do with Python at all. Running just...

test.py
Enter fullscreen mode Exit fullscreen mode

...is going to search your system environment paths for an executable file called test.py, and I can practically guarantee your project folder isn't part of that environment path.

Thus, you need to run...

./test.py
Enter fullscreen mode Exit fullscreen mode

The . means "current working directory", and then you build the relative path from there.