pydev

Eclipse + Python 的安装和配置

旧城冷巷雨未停 提交于 2019-12-10 03:15:12
一、Eclipse 的安装   Eclipse的安装是很容易的。Eclipse是基于java的一个应用程序,因此需要一个java的运行环境(JRE)才行。(我这里主要介绍windows下的安装)   JRE的下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html   进入JRE的下载页面你会发现有很多的安装版本,在这里我选择安装 jre-7u3-windows-i586.exe,双击安装即可。   Eclipse的下载地址:http://www.eclipse.org/downloads/   2012年6月发布的Eclipse 4.2(朱诺)。建议适用于Eclipse 4.2的​​Java 6 JRE / JDK。 下载后,直接将压缩包解压缩到你想要安放的目录即可,比如放在:F:\Eclipse,这样即可使用Eclipse。 二、安装Python   python的下载地址:http://www.python.org/getit/   最新版本是:python 3.3.0   进入下载地址后,根据你的需求进行下载。在这里我下载的是:python-3.3.0.msi,下载完后直接点击安装即可。我的安装目录为:F:\files\python   然后配置系统环境:我的电脑 —>属性—>高级—

pydev: debug in console mode (interactive)?

让人想犯罪 __ 提交于 2019-12-10 02:59:00
问题 I'm just starting to use pydev but am fairly experienced with Eclipse. I can use F11 to debug a file. I can use Ctrl-Alt-Enter to start a console after running the current file, but it does not seem to respect breakpoints. Is there a way to start a console (similar to Ctrl-Alt-Enter) in debug mode? 回答1: There is another way to have a console in debug mode: start the debug, when reaching your first breakpoint (maybe you will want to add a breakpoint in line 1) the console in the debug

How to resolve “chromedriver executable needs to be in PATH” error when running Selenium Chrome using virtualenv within PyDev?

↘锁芯ラ 提交于 2019-12-10 02:00:44
问题 Short: Having read Controlling the Browser with the selenium Module at https://automatetheboringstuff.com/chapter11, I am trying to run the Selenium Chrome driver in a virtual environment from PyDev. I have managed to do it from outside PyDev, but from within, I get: selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Long: I'm using Linux Debian 3.10.11-1. Following https://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/,

How do I make a file template for PyDev?

时光怂恿深爱的人放手 提交于 2019-12-09 18:55:04
问题 I'd like to have some boilerplate info about license, author, etc. at the top of every new file I create, but I can't find the correct boxes to tick. Basically, I want to create a new file, and have it already populated (at the top) with ''' author: Me license: something copyright: something ''' Is this even possible? 回答1: Go to Windows -> Preferences -> PyDev -> Editor -> Templates Create a new template: Fill the name with <Empty> choose Editor enable Automatically insert Add a description

Eclipse+python开发环境配置pydev

走远了吗. 提交于 2019-12-09 14:20:24
下载Eclipse下开发Python的插件Pydev,目前版本是1.6.5。 http://sourceforge.net/projects/pydev/ 下载后,解压缩文件夹中包含两个目录。 将这两个目录下的文件全部复制到Eclipse安装程序的对应的两个同名字目录下,即可完成Eclipse Python开发补丁安装。 重启Eclipse。 打开windows菜单,打开preferences子菜单,弹出对话框中即可看到Pydev补丁的安装结果。 选中子项Interpreter-Python,进行Python开发环境的设置。如下图: 点击右上角的New按钮,在弹出对话框中点击“Browse...”按钮,然后找到Python的安装目录,选中Python.exe即可(这就是python程序的编译器)。还会弹出弹出环境变量设置选项,不用修改直接确认即可。 下图所示为配置完成的界面。 开发环境测试。 配置完成后重启Eclipse开发环境,打开“File”菜单,选择“New->Project”,新建一个工程。 选择Pydev下的Pydev Project选项,然后设置工程名称和存储路径即可。 建立工程完毕后,工程管理窗口自动添加了“src”目录和python编译器。如下图所示,然后,对“src”目录点右键添加一个文件命名为“main.py”即可。然后,打开文件添加代码“print("test

todo tags not working on eclipse and pydev

大憨熊 提交于 2019-12-09 12:24:41
问题 I'm using eclipse 3.7.0 on fedora and pydev 2.2.2 I tried to use the todo tags but it doesnt work. the todo tags on window > preferences looks fine. i can add a using left click beside the line. please advice 回答1: Comments with #TODO will only generate tasks if: The code is in a source folder (i.e.: in the PYTHONPATH) You have the builders turned on (or run the build manually from time to time). Reference: http://pydev.org/manual_adv_tasks.html The getting started guide ( http://pydev.org

PyCharm flask &apos;Debug mode off&apos; 调试模式关闭的解决方法

…衆ロ難τιáo~ 提交于 2019-12-09 12:09:41
flask的几种debug模式的方法 # 1.app.run 传参debug=true app.run(debug=True) #2 设置app的配置 app = Flask(__name__) app.config['DEBUG'] = True #3 配置文件方式 # config.py中添加debug模式 DEBUG = True #app.py中引用配置 import config app.config.from_object(config) PyCharm使用调试模式的问题 使用Pycharm的时候,使用上面任何一种方法,都不能进入debug模式,启动日志提示“调试模式关闭” Connected to pydev debugger (build 182.4505.26) * Serving Flask app "app.py" * Environment: development * Debug mode: off #调试模式关闭 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) 解决方式 在PyCharm的启动配置中勾选debug模式 勾选后再次启动,调试模式启动成功 Connected to pydev debugger (build 182.4505.26) * Serving Flask app

How to configure Eclipse for PyDev? Python doesn't appear in Preferences window

主宰稳场 提交于 2019-12-09 10:36:19
问题 I'm trying to install PyDev in Eclipse 3.6 on Windows 7. I have Python 2.7 successfully installed. I installed PyDev through Eclipse, and restarted. When attempting to configure Eclipse to find my installed Python, ( Window -> Preferences ) the list that appears does not contain Python. (See image below.) If I go back to Help -> Install New Software to check what has been installed, PyDev appears as having been installed. I've tried quitting Eclipse and opening again, with no change. I tried

Virtualenv with Eclipse (Galileo) [closed]

夙愿已清 提交于 2019-12-09 04:03:39
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . Does anybody have directions for getting Eclipse (Galileo), PyDev, and Virtualenv working together? I'm specifically trying to run Pinax but any instructions are fine. I thought I had it (and even blogged everything but the final step - interactive debugging) and still there is no

How to set up pygame with Eclipse?

喜你入骨 提交于 2019-12-09 01:28:33
问题 Edit3: Additional information: I was able to get the Eclipse/pygame combo running on Windows... just not on MacOSX. Edit2: Compiling from the shell also works. Just Eclipse now :) What I've tried in Eclipse: For the interpreter I use auto-config and it suggests /usr/bin/python as interpreter. Then for PYTHONPATH he suggests all the default stuff and I then add /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages in addition to the rest. I still have the unresolved