I’m encountering an issue when trying to use the optapy library in my Python project. Specifically, I’m getting an ImportError related to JPype when I attempt to import optapy. Here are the details of the error:
*
File “”, line 1, in
File “C:UsersadminDesktopoptapyTestoptapy-envlibsite-packagesoptapy_init_.py”, line 11, in
from .annotations import *
File “C:UsersadminDesktopoptapyTestoptapy-envlibsite-packagesoptapyannotations.py”, line 1, in
import jpype
File “C:UsersadminDesktopoptapyTestoptapy-envlibsite-packagesjpype_init_.py”, line 18, in
import _jpypeImportError: DLL load failed while importing _jpype: The specified module could not be found.*
Operating System: (e.g., Windows 11)
Python Version: ( Python 3.9.10)
Java Version: (openjdk 21.0.3 2024-04-)
how can i import optapy successfully