Share via

Got #PYTHON! error in Python in Excel

Anonymous
2023-10-07T02:06:21+00:00

The new PY() function is available and I can type Python code in the formula bar which shows the PY mark, however none of the code works, including the built-in samples or even a simple "1+1". All I got is a #PHYTON! error. When I click show error message it says "The Python interpreter returned the following error: Unexpected failure"

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Mr. Trust_A 4,820 Reputation points Volunteer Moderator
    2023-10-07T11:41:53+00:00

    Hello boqun ji,

    As of August 2023, we were informed that Python in Excel is rolling out to Public Preview for those in the Microsoft 365 Insider Program, using the Beta Channel in Excel for Windows. Remember, as this is a new feature, there might be some bugs that Microsoft is still working on. If the problem persists, consider reporting it through the Feedback option in Excel by selecting Help > Feedback.

    Thank you,

    Was this answer helpful?

    0 comments No comments