October 21, 2024
Chicago 12, Melborne City, USA
python

when I try to run Python 3.13, it immediately gives an “ImportError”


I type command "python3.13" (on MacOS/terminal/csh) and get response:

Traceback (most recent call last):
  File "/Users/prowat/.pythonstartup", line 6, in <module>
    from math import pi, coth, cos, tanh, cosh, log, exp, pow, sqrt, fabs, expm1
ImportError: cannot import name 'coth' from 'math' (/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/lib-dyn
>>> 

I don’t know what that .pythonstartup file is or how it got there.

How can this be fixed?

I tried to run the latest Python, Python3.13, and immediately got the response described above.



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video