我是python和pip的新手,在这一点上,安装javabridge对我来说似乎是不可能的任务。解决了这么多“找不到Java Runtine”,“找不到Java SDK”错误之后,现在它给了我这些LNK1120和LNK2001错误。我有Visual Studio 2017社区。我该如何解决?
详细信息:
C:\Program Files\Java\jdk1.8.0_202\bin\javac.exe -source 6 -target 6
C:\Users\user\AppData\Local\Temp\pip-install-
eqqoygmd\javabridge\java\org\cellprofiler\runnablequeue\RunnableQueue.java
warning: [options] bootstrap class path not set in conjunction with -source
1.6
1 warning
C:\Program Files\Java\jdk1.8.0_202\bin\javac.exe -source 6 -target 6
C:\Users\user\AppData\Local\Temp\pip-install-
eqqoygmd\javabridge\java\org\cellprofiler\javabridge\test\RealRect.java
warning: [options] bootstrap class path not set in conjunction with -source
1.6
1 warning
C:\Program Files\Java\jdk1.8.0_202\bin\javac.exe -source 6 -target 6
C:\Users\user\AppData\Local\Temp\pip-install-
eqqoygmd\javabridge\java\org\cellprofiler\javabridge\CPython.java
C:\Users\user\AppData\Local\Temp\pip-install-
eqqoygmd\javabridge\java\org\cellprofiler\javabridge\
CPythonInvocationHandler.java
warning: [options] bootstrap class path not set in conjunction with -source
1.6
Note: C:\Users\user\AppData\Local\Temp\pip-install-
eqqoygmd\javabridge\java\org\cellprofiler\javabridge\
CPythonInvocationHandler.j
ava uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
building 'javabridge._javabridge' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c
/nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Program
Files\Java\jdk1.8.0_202\include"
"-IC:\Program Files\Java\jdk1.8.0_202\include\win32" -
Ic:\users\user\appdata\local\programs\python\python37-32\lib\site-
packages\numpy\core\include -
Ic:\users\user\appdata\local\programs\python\python37-32\include -
Ic:\users\user\appdata\local\programs\python\python37-32\include "-
IC:\Program
Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-
IC:\Program
Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program
Files
(x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" -Isearch-
ms:displayname=Search%20Results%20in%20Community&crumb=location:
C%3A%5CProgram%
20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2017%5CCommunity\include -
Isearch-ms:displayname=Search%20Results%20in%20Community&crumb=location:
C%3A%5CProgram%
20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2017%5CCommunity\include -
Isearch- ms:displayname=Search%20Results%20in%20Community&crumb=location:
C%3A%5CProgram%
20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2017%5CCommunity\include -
Isearch-
ms:displayname=Search%20Results%20in%20Community&crumb=location:
C%3A%5CProgram%
20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2017%5CCommunity\include
/Tc_javabridge.c /Fobuild\temp.win32-3.7\Release\_javabridge.obj
_javabridge.c
c:\users\user\appdata\local\programs\python\python37-32\lib\site-
packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning
Msg:
Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API
NPY_1_7_API_VERSION
_javabridge.c(6736): warning C4244: '=': conversion from 'long' to 'jchar',
possible loss of data
_javabridge.c(6925): warning C4244: '=': conversion from 'double' to
'jfloat',
possible loss of data
_javabridge.c(8053): warning C4013: 'CreateJavaVM' undefined; assuming
extern
returning int
_javabridge.c(9171): warning C4013: 'StopVM' undefined; assuming extern
returning int
_javabridge.c(16074): warning C4244: '=': conversion from 'long' to
'jchar',
possible loss of data
_javabridge.c(16622): warning C4244: '=': conversion from 'double' to
'jfloat',
possible loss of data
_javabridge.c(18656): warning C4244: '=': conversion from 'long' to
'jchar',
possible loss of data
_javabridge.c(18932): warning C4244: '=': conversion from 'long' to
'jchar',
possible loss of data
_javabridge.c(19480): warning C4244: '=': conversion from 'double' to
'jfloat',
possible loss of data
_javabridge.c(33682): warning C4244: 'initializing': conversion from
'double'
to 'float', possible loss of data
_javabridge.c(33688): warning C4244: 'initializing': conversion from
'double'
to 'float', possible loss of data
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c
/nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Program
Files\Java\jdk1.8.0_202\include"
"-IC:\Program Files\Java\jdk1.8.0_202\include\win32" -
Ic:\users\user\appdata\local\programs\python\python37-32\lib\site-
packages\numpy\core\include -
Ic:\users\user\appdata\local\programs\python\python37-32\include -
Ic:\users\user\appdata\local\programs\python\python37-32\include "-
IC:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "
-IC:\Program
Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program
Files
(x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" -Isearch-
ms:displayname=Search%20Results%20in%20Community&crumb=location:
C%3A%5CProgram%
20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2017%5CCommunity\include -
Isearch-ms:displayname=Search%20Results%20in%20Community&crumb=location:
C%3A%5CProgram%
20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2017%5CCommunity\include -
Isearch-ms:displayname=Search%20Results%20in%20Community&crumb=location:
C%3A%5CProgram%
20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2017%5CCommunity\include -
Isearch-ms:displayname=Search%20Results%20in%20Community&crumb=location:
C%3A%5CProgram%
20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2017%5CCommunity\include
/Tc_javabridge_nomac.c /Fobuild\temp.win32-
3.7\Release\_javabridge_nomac.obj
_javabridge_nomac.c
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c
/nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Program
Files\Java\jdk1.8.0_202\include"
"-IC:\Program Files\Java\jdk1.8.0_202\include\win32" -
Ic:\users\user\appdata\local\programs\python\python37-32\lib\site-
packages\numpy\core\include -
Ic:\users\user\appdata\local\programs\python\python37-32\include -
Ic:\users\user\appdata\local\programs\python\python37-32\include "-
IC:\Program
Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-
IC:\Program
Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program
Files
(x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" -Isearch-
ms:displayname=Search%20Results%20in%20Community&crumb=location:
C%3A%5CProgram%
20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2017%5CCommunity\include -
Isearch-ms:displayname=Search%20Results%20in%20Community&crumb=location:
C%3A%5CProgram%
20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2017%5CCommunity\include -
Isearch-ms:displayname=Search%20Results%20in%20Community&crumb=location:
C%3A%5CProgram%
20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2017%5CCommunity\include -
Isearch-
ms:displayname=Search%20Results%20in%20Community&crumb=location:
C%3A%5CProgram%
20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2017%5CCommunity\include
/Tcstrtoull.c /Fobuild\temp.win32-3.7\Release\strtoull.obj
strtoull.c
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\link.exe
/nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO
"/LIBPATH:C:\Program Files\Java\jdk1.8.0_202\lib"
/LIBPATH:c:\users\user\appdata\local\programs\python\python37-32\libs
/LIBPATH:c:\users\user\appdata\local\programs\python\python37-
32\PCbuild\win32
"/LIBPATH:C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x86"
"/LIBPATH:C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86"
"/LIBPATH:C:\Program
Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x86" "/LIBPATH:C:\Program
Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x86" jvm.lib
/EXPORT:PyInit__javabridge build\temp.win32-3.7\Release\_javabridge.obj
build\temp.win32-3.7\Release\_javabridge_nomac.obj build\temp.win32-
3.7\Release\strtoull.obj /OUT:build\lib.win32-
3.7\javabridge\_javabridge.cp37-
win32.pyd /IMPLIB:build\temp.win32-3.7\Release\_javabridge.cp37-win32.lib
/MANIFEST
Creating library build\temp.win32-3.7\Release\_javabridge.cp37-win32.lib
and
object build\temp.win32-3.7\Release\_javabridge.cp37-win32.exp
_javabridge_nomac.obj :
error LNK2001: unresolved external symbol
__imp__JNI_CreateJavaVM@12
build\lib.win32-3.7\javabridge\_javabridge.cp37-win32.pyd : fatal error
LNK1120: 1 unresolved externals
error: command 'C:\\Program Files (x86)\\Microsoft Visual
Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86
\\x86\\link.exe' failed with exit status 1120
----------------------------------------
Command "c:\users\user\appdata\local\programs\python\python37-32\python.exe
-u -c "import setuptools,
tokenize;__file__='C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-
eqqoygmd\\javabridge\\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\user\AppData\Local\Temp\pip-
record-qhpvis4b\install-record.txt --single-version-externally-managed --
compile" failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip-
install-eqqoygmd\javabridge\