R
R
r4khic2019-09-12 06:21:06
Python
r4khic, 2019-09-12 06:21:06

How to install Jpype for python 3.7?

Hello ! I'm trying to install a library for python 3.7 via PIP Jpype
Followed strictly according to this instruction
Installed Microsoft Visual Studio 2010 Redistributable Package (x64)
Installed Microsoft Build Tools 2015 Update 3
But in the end I get this error:

Microsoft Windows [Version 6.3.9600]
(c) Корпорация Майкрософт (Microsoft Corporation), 2013. Все права защищены.

C:\Users\Администратор>pip install JPype1
Collecting JPype1
  Using cached https://files.pythonhosted.org/packages/28/63/784834e8a24ec2e1ad7
f703c3dc6c6fb372a77cc68a2fdff916e18a4449e/JPype1-0.7.0.tar.gz
Building wheels for collected packages: JPype1
  Building wheel for JPype1 (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\администратор\appdata\local\programs\python\python37-32\py
thon.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\
\836D~1\\AppData\\Local\\Temp\\pip-install-hzn3x9a4\\JPype1\\setup.py'"'"'; __fi
le__='"'"'C:\\Users\\836D~1\\AppData\\Local\\Temp\\pip-install-hzn3x9a4\\JPype1\
\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read()
.replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"
'"'exec'"'"'))' bdist_wheel -d 'C:\Users\836D~1\AppData\Local\Temp\pip-wheel-yo2
neo5s' --python-tag cp37
       cwd: C:\Users\836D~1\AppData\Local\Temp\pip-install-hzn3x9a4\JPype1\
  Complete output (52 lines):
  c:\users\администратор\appdata\local\programs\python\python37-32\lib\distutils
\dist.py:274: UserWarning: Unknown distribution option: 'use_scm_version'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.7
  creating build\lib.win32-3.7\jpype
  copying jpype\beans.py -> build\lib.win32-3.7\jpype
  copying jpype\imports.py -> build\lib.win32-3.7\jpype
  copying jpype\nio.py -> build\lib.win32-3.7\jpype
  copying jpype\reflect.py -> build\lib.win32-3.7\jpype
  copying jpype\types.py -> build\lib.win32-3.7\jpype
  copying jpype\_classpath.py -> build\lib.win32-3.7\jpype
  copying jpype\_core.py -> build\lib.win32-3.7\jpype
  copying jpype\_cygwin.py -> build\lib.win32-3.7\jpype
  copying jpype\_darwin.py -> build\lib.win32-3.7\jpype
  copying jpype\_gui.py -> build\lib.win32-3.7\jpype
  copying jpype\_jarray.py -> build\lib.win32-3.7\jpype
  copying jpype\_jboxed.py -> build\lib.win32-3.7\jpype
  copying jpype\_jclass.py -> build\lib.win32-3.7\jpype
  copying jpype\_jcollection.py -> build\lib.win32-3.7\jpype
  copying jpype\_jcomparable.py -> build\lib.win32-3.7\jpype
  copying jpype\_jcustomizer.py -> build\lib.win32-3.7\jpype
  copying jpype\_jexception.py -> build\lib.win32-3.7\jpype
  copying jpype\_jinit.py -> build\lib.win32-3.7\jpype
  copying jpype\_jio.py -> build\lib.win32-3.7\jpype
  copying jpype\_jobject.py -> build\lib.win32-3.7\jpype
  copying jpype\_jpackage.py -> build\lib.win32-3.7\jpype
  copying jpype\_jproxy.py -> build\lib.win32-3.7\jpype
  copying jpype\_jstring.py -> build\lib.win32-3.7\jpype
  copying jpype\_jtypes.py -> build\lib.win32-3.7\jpype
  copying jpype\_jvmfinder.py -> build\lib.win32-3.7\jpype
  copying jpype\_linux.py -> build\lib.win32-3.7\jpype
  copying jpype\_pykeywords.py -> build\lib.win32-3.7\jpype
  copying jpype\_windows.py -> build\lib.win32-3.7\jpype
  copying jpype\__init__.py -> build\lib.win32-3.7\jpype
  running build_ext
  running build_java
  Using Jar cache
  creating build\lib
  creating build\lib\org
  creating build\lib\org\jpype
  creating build\lib\org\jpype\classloader
  copying native\jars\org\jpype\classloader\JPypeClassLoader.class -> build\lib\
org\jpype\classloader
  copying native\jars\org.jpype.jar -> build\lib
  running build_thunk
  Building thunks
    including thunk build\lib\org\jpype\classloader\JPypeClassLoader.class
    including thunk build\lib\org.jpype.jar
  building '_jpype' extension
  error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C+
+ Build Tools": https://visualstudio.microsoft.com/downloads/
  ----------------------------------------
  ERROR: Failed building wheel for JPype1
  Running setup.py clean for JPype1
Failed to build JPype1
Installing collected packages: JPype1
  Running setup.py install for JPype1 ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\администратор\appdata\local\programs\python\python37-32\
python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\User
s\\836D~1\\AppData\\Local\\Temp\\pip-install-hzn3x9a4\\JPype1\\setup.py'"'"'; __
file__='"'"'C:\\Users\\836D~1\\AppData\\Local\\Temp\\pip-install-hzn3x9a4\\JPype
1\\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\836D~1\AppData\Local\Temp\pip-recor
d-6ai9l05v\install-record.txt' --single-version-externally-managed --compile
         cwd: C:\Users\836D~1\AppData\Local\Temp\pip-install-hzn3x9a4\JPype1\
    Complete output (46 lines):
    c:\users\администратор\appdata\local\programs\python\python37-32\lib\distuti
ls\dist.py:274: UserWarning: Unknown distribution option: 'use_scm_version'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build\lib.win32-3.7
    creating build\lib.win32-3.7\jpype
    copying jpype\beans.py -> build\lib.win32-3.7\jpype
    copying jpype\imports.py -> build\lib.win32-3.7\jpype
    copying jpype\nio.py -> build\lib.win32-3.7\jpype
    copying jpype\reflect.py -> build\lib.win32-3.7\jpype
    copying jpype\types.py -> build\lib.win32-3.7\jpype
    copying jpype\_classpath.py -> build\lib.win32-3.7\jpype
    copying jpype\_core.py -> build\lib.win32-3.7\jpype
    copying jpype\_cygwin.py -> build\lib.win32-3.7\jpype
    copying jpype\_darwin.py -> build\lib.win32-3.7\jpype
    copying jpype\_gui.py -> build\lib.win32-3.7\jpype
    copying jpype\_jarray.py -> build\lib.win32-3.7\jpype
    copying jpype\_jboxed.py -> build\lib.win32-3.7\jpype
    copying jpype\_jclass.py -> build\lib.win32-3.7\jpype
    copying jpype\_jcollection.py -> build\lib.win32-3.7\jpype
    copying jpype\_jcomparable.py -> build\lib.win32-3.7\jpype
    copying jpype\_jcustomizer.py -> build\lib.win32-3.7\jpype
    copying jpype\_jexception.py -> build\lib.win32-3.7\jpype
    copying jpype\_jinit.py -> build\lib.win32-3.7\jpype
    copying jpype\_jio.py -> build\lib.win32-3.7\jpype
    copying jpype\_jobject.py -> build\lib.win32-3.7\jpype
    copying jpype\_jpackage.py -> build\lib.win32-3.7\jpype
    copying jpype\_jproxy.py -> build\lib.win32-3.7\jpype
    copying jpype\_jstring.py -> build\lib.win32-3.7\jpype
    copying jpype\_jtypes.py -> build\lib.win32-3.7\jpype
    copying jpype\_jvmfinder.py -> build\lib.win32-3.7\jpype
    copying jpype\_linux.py -> build\lib.win32-3.7\jpype
    copying jpype\_pykeywords.py -> build\lib.win32-3.7\jpype
    copying jpype\_windows.py -> build\lib.win32-3.7\jpype
    copying jpype\__init__.py -> build\lib.win32-3.7\jpype
    running build_ext
    running build_java
    Using Jar cache
    copying native\jars\org\jpype\classloader\JPypeClassLoader.class -> build\li
b\org\jpype\classloader
    copying native\jars\org.jpype.jar -> build\lib
    running build_thunk
    Building thunks
    Skip build thunks
    building '_jpype' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual
C++ Build Tools": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\администратор\appdata\l
ocal\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, toke
nize; sys.argv[0] = '"'"'C:\\Users\\836D~1\\AppData\\Local\\Temp\\pip-install-hz
n3x9a4\\JPype1\\setup.py'"'"'; __file__='"'"'C:\\Users\\836D~1\\AppData\\Local\\
Temp\\pip-install-hzn3x9a4\\JPype1\\setup.py'"'"';f=getattr(tokenize, '"'"'open'
"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.clos
e();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\83
6D~1\AppData\Local\Temp\pip-record-6ai9l05v\install-record.txt' --single-version
-externally-managed --compile Check the logs for full command output.

UPD Tried installing VS and selecting python support didn't help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2019-09-12
@r4khic

What, a lot of incomprehensible words in an incomprehensible language? Don't worry, I'll find you the main thing:

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question