Error while building wheel for JPype1 in Python 3.12

467 views Asked by At

I am trying to install JPype1 (version 1.4.1) in python 3.12 but I get the following error

jp_primitivetype.cpp
      native\common\jp_primitivetype.cpp(50): error C2039: 'ob_digit': is not a member of '_longobject'
      C:\Users\Admin\AppData\Local\Programs\Python\Python312\include\cpython/longintrepr.h(87): note: see declaration of '_longobject'

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for jpype1
Failed to build jpype1
ERROR: Could not build wheels for jpype1, which is required to install pyproject.toml-based projects

I entered the command "pip install jpype". I expected jpype to be installed but got this error instead.

1

There are 1 answers

1
Kailoopen On

I've seen pages suggesting that you drop to a lower version of pip and/or python

Click here