I'm learning python and I'm attempting to make a python file executable. This is the code
#! /Users/<me>/PycharmProjects/untitled3
print ("Hello World")
in the terminal I typed.
$ chmod +x paperclip.py
And then
$ ./paperclip.py
But I get
-bash: ./paperclip.py: /Users/<me>/PycharmProjects/untitled3: bad interpreter: Permission denied
How do I fix this? Thanks.
Edit: Even after I changed the top line to
#!/Users/<me>/PycharmProjects/untitled3 python
or
#! /Users/<me>/PycharmProjects/untitled3 python3
Never mind. Thanks