0

You can see the error in this image:

https://i.stack.imgur.com/GBoyE.png

I am sure this is some kind of interpreter problem, but I couldn't find the solution. I am on mac environment.

  • 1
    Check to see the Python version in VSCode. Macbook often has Python2 installed, so VSCode might be using the wrong Python version. Hope these links help you: https://code.visualstudio.com/docs/python/environments#_select-and-activate-an-environment and https://stackoverflow.com/a/53699178/14426823. – Bao Huynh Lam Feb 10 '22 at 19:49
  • I would assume that vscode uses the python version of your os (possibliy outdated). Pycharm uses it's build-in Envoirment. This might be a simple version discrepancy. Same idea as the person above me, and a little quicker as well.... – TheGreydiamond Feb 10 '22 at 20:04
  • which python interpreter are you using? – Steven-MSFT Feb 11 '22 at 08:09
  • Please provide enough code so others can better understand or reproduce the problem. – Community Feb 21 '22 at 19:53

1 Answers1

0

maybe deploy it on a bash terminal and to deploy it write: python func.py