pinkcat
pinkcat

Reputation: 327

How to install jnius in python?

I tried to install jnius, I installed Visual Studio Build Tools, but when I enter pip install jnius, I get error:

ERROR: Command errored out with exit status 1:
'c:\users\вввв\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, 
tokenize; sys.argv[0] = '"'"'C:\\Users\\1D87~1\\AppData\\Local\\Temp\\pip-install- 
9ggkbbff\\jnius\\setup.py'"'"'; __file__='"'"'C:\\Users\\1D87~1\\AppData\\Local\\Temp\\pip-install- 
9ggkbbff\\jnius\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open) 
(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, 
__file__, '"'"'exec'"'"'))' install --record 'C:\Users\1D87~1\AppData\Local\Temp\pip-record- 
hczhl1cy\install-record.txt' --single-version-externally-managed --compile Check the logs for full 
command output.

ERROR: Failed building wheel for jnius

How can I fix it? I hope you help me

Upvotes: 1

Views: 9830

Answers (1)

FlyingTeller
FlyingTeller

Reputation: 20482

jnius, which is this pypi project does not support python 3.7 officially.

A quick google search however yields that the module is now called pyjnius, see this GitHub page:

Warning: the pypi name is now pyjnius instead of jnius.

So use the correct version and do:

pip install pyjnius

There are whl files for windows and python 3.7, so the installation should go smoothly. If not, you can check the installation instructions in the docs

Upvotes: 1

Related Questions