简体   繁体   English

如何在python 2.7中安装jaydebeapi

[英]How to install jaydebeapi in python 2.7

I'm using python 2.7 on Window7. 我在Window7上使用python 2.7。 I need to install jaydebeapi. 我需要安装jaydebeapi。 I tried 我试过了

conda install JayDeBeApi

But I got following error installation error 但是我收到以下错误安装错误

Also I tried the steps mentioned in 我也尝试了

How to install JayDeBeApi in python 3.6 如何在python 3.6中安装JayDeBeApi

but import jaydebeapi is giving error message 但是import jaydebeapi给出错误信息

ImportError: No module named jaydebeapi 

in my anaconda with spyder 3.2.6 在我的Anaconda和spyder 3.2.6中

I also downloaded it from 我也从下载

https://github.com/baztian/jaydebeapi and used following command in Anaconda promt https://github.com/baztian/jaydebeapi,并在Anaconda promt中使用了以下命令

python setup.py install

It works in anaconda prompt. 它可以在anaconda提示符下工作。 Please refer the screen shot Running in conda But import statement is still giving error in python Can you please suggest how to import jaydebeapi 请参考在conda中运行的屏幕截图但是import语句在python中仍然给出错误,请您提示如何导入jaydebeapi

run pip install ModuleName on your CMD 在CMD上运行pip install ModuleName

pip install JayDeBeApi

Resultat : 结果:

Collecting JayDeBeApi
 Using cached 
https://files.pythonhosted.org/packages/87/e2/a84253efa32c104256d
44731513b8d8b7e47a890b6e44fb42c54688a5dc2/JayDeBeApi-1.1.1-py2-none-any.whl
Collecting JPype1 (from JayDeBeApi)
  Using cached 
https://files.pythonhosted.org/packages/c4/4b/60a3e63d51714d4d7ef
1b1efdf84315d118a0a80a5b085bb52a7e2428cdc/JPype1-0.6.3.tar.gz
Installing collected packages: JPype1, JayDeBeApi
 Running setup.py install for JPype1 ... done
  Successfully installed JPype1-0.6.3 JayDeBeApi-1.1.1

Done: 完成:

>>> import jaydebeapi
>>> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM