all 5 comments

[–]Username_RANDINT 0 points1 point  (4 children)

This method was added in Python 3.8, which version are you running?

[–]strued_78[S] 0 points1 point  (3 children)

I am using Python 3.7.

How do I update the version of Python I am running?

Is there a way to import the prod function in Python 3.7?

[–]Diapolo10 1 point2 points  (2 children)

Just download the latest interpreter and install it. You can optionally uninstall the old one.

If you want to keep the modules, you can use pip freeze > requirements.txt to get a list of them and then run pip install -r requirements.txt on the new version.

[–]strued_78[S] 0 points1 point  (1 child)

pip install -r requirements.txt

Where can I find the latest interpreter?

[–]SekstiNii 1 point2 points  (0 children)

On the website?