I don't understand why I get this error. I've already looked at other forums and tried
-bash: import: command not found
!/usr/bin/env python3
And using that doesn't work
I don't understand why I get this error. I've already looked at other forums and tried
-bash: import: command not found
!/usr/bin/env python3
And using that doesn't work
Wow I messed up. In the Mac OSX terminal I didn't type in Python first. That's the solution
You're trying to run a Python program with Bash. How are you running it?
It appears to have a valid shebang, so either:
You're explicitly running "bash". Don't -- just run the program directly.
Your /usr/bin/env python3
is misconfigured, and is starting Bash instead of Python. What happens when you run that?
'Import' indicates this line of code should be added to your app entry file, most likely with the other 'import' statements in your index.js or index.jsx, not run in the terminal.