我正在尝试使用 pip
( pip install javabridge
)安装 javabridge
但出现以下错误:
InstallationError:命令C:\ Python27 \ python.exe -c“import setuptools,tokenize; file ='c:\ windows \ temp \ pip_build_user \ javabridge \ setup.py'; exec(compile(getattr(tokenize,'open') ,打开)(文件).read() . replace('\ r \ n','\ n'),file,'exec'))“install --record c:\ windows \ temp \ pip-46k2_w-record \ install-record.txt --single-version-external-managed --compile失败,错误代码1在c:\ windows \ temp \ pip_build_user \ javabridge
我怎么能解决它?
1 回答
pip不起作用的原因有很多,但作为备份,您可以手动安装 .
从here下载.tar.gz文件 .
解压缩并解压缩到一个文件夹(7-zip效果很好)
从命令行或powershell导航到文件夹
运行
python setup.py install