如何在 eclipse (python) 上添加库?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18803444/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:10:51  来源:igfitidea点击:

How to add library on eclipse (python) ?

pythoneclipseeclipse-pluginleap-motion

提问by ???????? ???????

I am developing leap motionwith the help of python.

我正在开发leap motion的帮助下python

I have downloaded eclipseand installed python plugin

我已经下载eclipse并安装了python插件

Now I need to add libraryof leap motion , that is LeapPython.pyd

现在我需要添加library跳跃运动,即LeapPython.pyd

How to add this library on eclipse ?

如何在 eclipse 上添加这个库?

Any help would be appreciated. thank you

任何帮助,将不胜感激。谢谢你

回答by Mark Mikofski

You need to add a Python interpreterand Python librariesto PyDevusing the PyDev-Interpreter-Preferences. See Getting Startedin PyDev docs. This also assumes you have Python installed on your computer. And of course this assumes you have the Leap Motion SDKinstalled as well. There are many SO questions related to Leap Motion.

您需要使用PyDev-Interpreter-PreferencesPython 解释器Python 库添加到PyDev。请参阅PyDev 文档中的入门。这还假设您的计算机上安装了 Python。当然,这假设您还安装了Leap Motion SDK有很多与 Leap Motion 相关的 SO 问题。

  • Select Windowfrom the menu bar at the top of the eclipse application. This opens a pull down menu.
  • Select Preferencesfrom the pull down menu. This opens the preferences window.
  • Expand the PyDevarrow from the preferences tree along the left side of the preferences window.
  • Select Interpreter-Pythonfrom the tree underneath PyDev. This displays the Python Interpretersconfiguration in the preferences window. Python Interpreters configuration
  • If you have not done so already, click the Auto Configbutton, then OK, OK, &c. until your interpreter is configured.
  • The bottom half of the Python Interpretersconfiguration allows you to select Librariesand other configuration options.
  • If the folder containing LeapPython.pydis not listed under Libraries, click the New Folderbutton, browse to the folder that containins it and click OK, OK, &c. until the folder is added to PyDev.
  • 从 eclipse 应用程序顶部的菜单栏中选择Window。这将打开一个下拉菜单。
  • 从下拉菜单中选择选项。这将打开首选项窗口。
  • 沿着首选项窗口左侧的首选项树展开PyDev箭头。
  • 从 PyDev 下的树中选择Interpreter-Python。这将在首选项窗口中显示Python 解释器配置。 Python解释器配置
  • 如果您还没有这样做,请单击“自动配置”按钮,然后单击“确定”、“确定”等。直到您的解释器配置完毕。
  • Python 解释器配置的下半部分允许您选择和其他配置选项。
  • 如果包含LeapPython.pyd的文件夹未在Libraries 下列出,请单击“新建文件夹”按钮,浏览到包含它的文件夹,然后单击“确定”、“确定”等。直到将文件夹添加到 PyDev。

回答by ???????? ???????

Hi everyone now i can compile successed . i'm find how to solve this problem in here. how to solve this problem is copy msvcp100.dll , msvcp100d.dll , msvcr100.dll msvcpr100d.dll into your project folder.

大家好,现在我可以编译成功了。我在这里找到了如何解决这个问题。如何解决此问题是将 msvcp100.dll 、 msvcp100d.dll 、 msvcr100.dll msvcpr100d.dll 复制到您的项目文件夹中。

the problem is we call leap.py and leap.py call LeapPython.pyd and LeapPython.pyd must to use .dll file then we must to include 4 .dll file into my project

问题是我们调用leap.py 和leap.py 调用LeapPython.pyd 和LeapPython.pyd 必须使用.dll 文件然后我们必须在我的项目中包含4 个.dll 文件

thank you everyone for answer

谢谢大家的回答