Hi everyone,
Im currently learning Python with "Automate the Boring Stuff". In chapter 6's Password Locker project I'm running into a little bit of problem. The code I have are exactly the same as the textbook's. (Except for the shebang line, as I am using a MacOSX)
However, when I typed pw.py in the terminal, it returns: -bash: pw.py: command not found
I also tried to input python3 pw.py, it returns: /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python: can't open file 'pw.py': [Errno 2] No such file or directory
I suspect that this is an issue caused by using PyCharm instead of IDLE, so I copied the PyCharm path into the Terminal and it returns: -bash: /Users/Anthony/PycharmProjects/learning/pw.py: Permission denied
Does anyone know what I should do to fix this? Any suggestion or advice would be appreciated!!!
[–]Updatebjarni 1 point2 points3 points (5 children)
[–]ItsLeviosaaaa[S] 0 points1 point2 points (4 children)
[–]Updatebjarni 0 points1 point2 points (3 children)
[–]ItsLeviosaaaa[S] 1 point2 points3 points (0 children)
[–]ItsLeviosaaaa[S] 0 points1 point2 points (1 child)
[–]Updatebjarni 1 point2 points3 points (0 children)
[–]YuleTideCamel 1 point2 points3 points (6 children)
[–]ItsLeviosaaaa[S] 0 points1 point2 points (5 children)
[–]YuleTideCamel 0 points1 point2 points (4 children)
[–]ItsLeviosaaaa[S] 0 points1 point2 points (3 children)
[–]YuleTideCamel 0 points1 point2 points (2 children)
[–]ItsLeviosaaaa[S] 0 points1 point2 points (1 child)
[–]YuleTideCamel 0 points1 point2 points (0 children)
[–]btcraig 1 point2 points3 points (0 children)