r/learnpython • • Feb 02 '21

Newbie Here🙂

45 year old dad here. Laid off in the pandemic now learning Python. Regretting that I didn't take it up earlier in my life.

791 Upvotes

148 comments sorted by

View all comments

Show parent comments

3

u/yikes_coding Feb 02 '21

Pycharm doesn't work either, it prints this:

Error running 'test': Cannot run program [file directory to python.exe] (in directory [file directory to my python project folder]):
CreateProcess error=5, Access is denied

3

u/light-darkx Feb 02 '21

Looks like some permission error, what os do u use?

1

u/yikes_coding Feb 03 '21

Windows. It also prints out a different error on vscode if you haven't seen my post.

Edit: windows 10 64 bit.

3

u/TPKM tpakeman Feb 03 '21

It looks like your user account does not have permission to run the python executable. Is it installed somewhere weird? If it's definitely in a folder where you have execute permission it could be the antivirus blocking it. (I'm assuming this is windows from the exe)

2

u/[deleted] Feb 02 '21

Try posting both of your problems in this subreddit, I'm sure theres people who know how to fix it

2

u/Catthegod Feb 02 '21

Have you added the Python directory to your windows path?

1

u/yikes_coding Feb 03 '21

No idea, is that what I should try to do?

2

u/uponone Feb 03 '21

This could be an issue with Windows blocking execution of an internet sourced file or archive. Locate python.exe, right click it and select Properties. If it’s blocked, there will be an empty checkbox to allow it to be executed.