{"id":2631,"date":"2023-03-14T14:35:20","date_gmt":"2023-03-14T13:35:20","guid":{"rendered":"https:\/\/www.architecturemaker.com\/?p=2631"},"modified":"2023-03-14T14:35:20","modified_gmt":"2023-03-14T13:35:20","slug":"how-to-check-python-architecture","status":"publish","type":"post","link":"https:\/\/www.architecturemaker.com\/how-to-check-python-architecture\/","title":{"rendered":"How to check python architecture?"},"content":{"rendered":"

In order to check the python architecture, the user can open the terminal and type in “python -V”. The terminal should return the specific python version being used.<\/p>\n

The platform module in Python can help you check the architecture of your Python installation. You can run the following code in your Python interpreter to check the architecture of your system:<\/p>\n

>>> import platform
\n>>> platform.architecture()
\n(’64bit’, ‘WindowsPE’)<\/p>\n

If you are using a 64-bit version of Python, the output above will say ’64bit’. If you are using a 32-bit version of Python, the output will say ’32bit’.<\/p>\n

How do I find my Python architecture version? <\/h2>\n