Problems running scripts on the mac terminal

When i try to run a script via pycharm terminal i have no problem.

But if I try to run the same script using the mac terminal it gives me errors. Firstly, I activated "venv" using the following command:
"source  /venv/bin/activate".
I ran the script in both cases using the command "python3"
I am using python version 3.8.
This is the error I get when I launch the script from the Mac terminal.

Why is there this difference in running the same script? How can i solve?


Please sign in to leave a comment.