Ask Your Question
3

How can I resolve the AttributeError related to the absence of the attribute 'PY37' in the module 'torch._six'?

asked 2023-05-27 10:19:19 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-27 10:45:02 +0000

plato gravatar image

This issue typically occurs when you are using an older version of PyTorch that doesn't support Python 3.7. To resolve this error, you can do one of the following:

  1. Upgrade PyTorch to a version that supports Python 3.7: Check the PyTorch website for the latest version and install it using "pip install torch".

  2. Downgrade Python to a version that is supported by PyTorch: Check the PyTorch documentation to see which versions of Python are supported by your current version of PyTorch and install the compatible version of Python.

  3. Check your environment variables: Make sure you are using the correct version of Python and PyTorch in your environment. You can check this by typing "python --version" and "pip show torch" in the terminal.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-27 10:19:19 +0000

Seen: 8 times

Last updated: May 27 '23