I just have installed flask in VSCode following a freecodecamp tutorial (everything went well) but when i tried to run the basic appweb at flask, the terminal shows an error that i don't fully understand:
(env) (base) erickpruneda@MacBook-Air-de-Erick flask introduction % python3 haha.py
/Library/Frameworks/Python.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/erickpruneda/Documents/Documentos - MacBook Air de Erick/Documentos/developer/flask introduction/haha.py': [Errno 2] No such file or directory
I honestly don't know what to do.
Make sure that the file
haha.pyexists in the directory/Users/erickpruneda/Documents/Documentos - MacBook Air de Erick/Documentos/developer/flask introduction/.You can check this by navigating to the directory in your terminal and runninglsto list the files in the directory.Make sure that you are running the
python3 haha.pycommand from the correct directory. If you are not in the correct directory, you can navigate to it by usingcdcommand.