zhuminjie / OpenSeesPy

OpenSeesPy versions, doc, and pip
Other
167 stars 66 forks source link

RuntimeError: Python version 3.8 is needed for Windows #113

Closed VahedCivil closed 1 year ago

VahedCivil commented 1 year ago

Hi I installed the latest version 22H2 of Windows 11 and after installing the Anaconda library and installing the openseespy package, I encountered the following error. After removing Anaconda, I installed Python version 3.11.3 and I got the same error. Also, the latest version of openseespy (3.4.0.7) cannot be installed on Windows 11. please guide.


Traceback (most recent call last): File "D:\Program Files\Python311\Lib\site-packages\openseespy\opensees__init.py", line 19, in from openseespywin.opensees import * File "D:\Program Files\Python311\Lib\site-packages\openseespywin\init__.py", line 25, in raise RuntimeError( RuntimeError: Python version 3.8 is needed for Windows

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "e:\ProjectTraining\OpenSees\OpenSees Book\OpenSees and Python\example44.py", line 7, in from openseespy.opensees import * File "D:\Program Files\Python311\Lib\site-packages\openseespy\opensees__init__.py", line 22, in raise RuntimeError('Failed to import openseespy on Windows.') RuntimeError: Failed to import openseespy on Windows.


OS ver. : Window 11 - 22H2 , Os build: 22621.1555 Anaconda version : Anaconda3-2023.03-1-Windows-x86_64 Python version: Python 3.11.3 ActiveTcl-8.6.9 and OpenSees3.3.0-x64.exe is installed and it's work.

VahedCivil commented 1 year ago

Hi The problem was solved. OpenSeesPy versions lower than 3.4 doesn't support Python 3.10 or higher, and Python 3.9 or Anaconda3-2022.10 must be installed on the windows operating system.