Eclipse Blender和PyDev未解决的导入pydevd

时间:2018-07-02 09:28:07

标签: eclipse pydev blender

我在以下位置安装了python:

 p = os.popen(command, "r").read()
 f_temp_command = open("%s/%s%s" % (LOG_DIR, file, LOG_EXT), "w")
 f_temp_command.writelines([l for l in p.splitlines()])
 p.close()

我的PATH变量是:

C:\Users\xxxx\AppData\Local\Programs\Python\Python35-32

我在Eclipse中有这个功能

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

最后我有了这个-.-(您可以看到'import sys'起作用了:

enter image description here

2 个答案:

答案 0 :(得分:0)

好的,我发现出了什么问题。 首先,需要下载模块,在这种情况下为pydevd

请注意,下载的不是最新版本(就像我第一次做错了一样),但是会安装python版本。 就我而言,它是Python 3.5 .3,所以我选择:

pydevd-1.3.0-cp 35 -cp 35 m-win32.whl

然后使用pip安装它,很容易:

点安装C:%where_it_is_downloaded% /pydevd-1.3.0-cp35-cp35m-win32.whl

然后将 pydevd 添加到 pip setuptools 旁边的软件包中:

enter image description here 还有一件事情。 比较这两个屏幕。 站点软件包的路径必须从 lib 更改为 Lib

enter image description here

enter image description here

答案 1 :(得分:0)

作为一个提示,由于调试器通常只是临时使用,因此,如果您对unresolved imports感到满意,则可以仅使用PyDev的内部版本,并且只想将远程调试器连接到Blender。

您可以通过使用pydevd模板来做到这一点(即:在PyDev pydevd内编写并按下Ctrl+Space和将其添加到PYTHONPATH的选项,然后连接到远程调试器。)

有关远程调试器的更多详细信息,请参见:http://www.pydev.org/manual_adv_remote_debugger.html

相关问题