本文介绍了出现Pip错误时安装Javabridge的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试安装microscoper库,并且除它在安装时遇到的javabridge依赖项之外,其他所有功能都可以使用.每次尝试自行安装javabridge时,都会收到以下错误消息:
I'm trying to install the microscoper library and I've gotten everything to work except its javabridge dependency which I have had trouble installing. Everytime I try to install javabridge on its own I get the following error message:
C:\>pip install javabridge
Collecting javabridge
Using cached javabridge-1.0.15.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\<My Username Abbrv>\AppData\Local\Temp\pip-build-s902jjra\javabridge\setup.py", line 393, in <module>
ext_modules=ext_modules(),
File "C:\Users\<My Username Abbrv>\AppData\Local\Temp\pip-build-s902jjra\javabridge\setup.py", line 114, in ext_modules
p = subprocess.Popen(cmd)
File "c:\users\<My Username>\appdata\local\programs\python\python36\lib\subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "c:\users\<My Username>\appdata\local\programs\python\python36\lib\subprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\<My Username Abbrv>\AppData\Local\Temp\pip-build-s902jjra\javabridge\
如果有人对如何解决此问题并安装javabridge依赖项有任何建议,我将不胜感激.
If anyone had any advice on how I could fix this and install the javabridge dependency I would be greatly appreciative.
推荐答案
尝试使用这些命令,这有助于解决此错误的问题.
Try using these commands, this helped solve my problem for this error.
set MSSdk=1
set DISTUTILS_USE_SDK=1
pip install javabridge
这篇关于出现Pip错误时安装Javabridge的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!