pydev

Python Interpreter not installed after installing Aptana Studio3

放肆的年华 提交于 2020-01-12 08:35:32
问题 I was under the impression that installing Aptana Studio 3 also installed the python interpreter. when I try to create a PyDev project it says that "Project Interpreter not specified" So it will not let me proceed. Is there any documentation on how to proceed configuring the interpreter for Studio 3? I am using the latest build of Aptana Studio 3 standalone build: 3.0.4.201108101506. Thanks In advance for any assistance. PS I have already uninstalled and reinstalled studio 3 and am still

Eclipse PyDev now shows all references to Tkinter as errors

你离开我真会死。 提交于 2020-01-11 09:49:20
问题 I've been using Eclipse with PyDev (on Windows, mind you) for my Python Tkinter project for about a month now, and up until recently I've had no complaints. I start the source for one module (my GUI) like so: from Tkinter import * Now, ever since I updated Eclipse to 3.6.1, it shows an error for every call to the Tkinter module( Frame() , Label() , Tk() , etc.). I thought that something might have gone wrong during the update, so I uninstalled Eclipse, re-downloaded it (Eclipse 3.6.1 Classic)

Eclipse PyDev is throwing false errors

一世执手 提交于 2020-01-11 09:20:49
问题 I updated PyDev (Eclipse) yesterday and now it is telling me that None, name and other reserved words/builtin functions are invalid, but the script runs just fine. I have read on this forum that the problem deals with incorrectly importing the built-ins. I have tried changing the interpreter and re-adding it but no luck. Can somebody help me please? The errors: Undefined variable main Undefined variable None Undefined variable int Undefined variable eval I am running eclipse Juno and PyDev 2

PyDev project for Google App Engine not finding webapp2

左心房为你撑大大i 提交于 2020-01-10 04:01:36
问题 I am attempting to try out Google App Engine with python. Being familiar with Eclipse, I decided to use PyDev. After some trouble, I have a hello world program working... almost. It cannot find the webapp2 import, telling me it is unresolved. I have followed all of the instructions I can find, and have the google app engine libraries linked up - I think. I have searched for webapp2 as a potential import, and cannot find this anywhere in any of the library files. I am really new to python in

解决pycharm添加第三方包失败

风流意气都作罢 提交于 2020-01-10 00:17:44
今天想用pycharm打开图像,但是import scipy的时候报错了,报错内容如下: from scipy.misc import imread Traceback (most recent call last): File "<input>", line 1, in <module> File "D:\pycharm\PyCharm Community Edition 2017.2.3\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "D:\Python\lib\site-packages\scipy\misc\__init__.py", line 67, in <module> from scipy.interpolate._pade import pade as _pade File "D:\pycharm\PyCharm Community Edition 2017.2.3\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system

Eclipse pydev 代码检查功能

笑着哭i 提交于 2020-01-09 02:06:58
C#/Java project 在编译时就能检查代码有哪些错误. python 是动态语言, 可以认为是没有编译环节, 没有编译环节意味着我们少一个检查代码错误的机会, 这应该算是动态语言的一个缺点吧! 好在, 可以借助一些代码分析工具部分地弥补这一不足. 这里列举一下pydev 的代码分析功能: ================================ 1. pydev 自带的代码分析功能 (这个功能我经常使用) ================================ 配置: preference 窗口 pydev/Editor/Code analysis 的前几个tab页. 启用状态: 默认情况下, 该代码分析功能是开启的. 多数设置我都选用默认状态, 除了Others tab, 我强化了检查的级别, 如下: Others tab: Indentation problems and mixing of tabs/spaces Warning --> Error Redefinition of builtin sysbols Warning --> Error 使用方法: 在项目树的项目节点上, 弹出快捷菜单, 选 pydev/Code analysis ================================ 2. pep8.py 代码分析功能

No module named py4j.protocol on Eclipse (PyDev)

穿精又带淫゛_ 提交于 2020-01-06 21:43:09
问题 I configured Eclipse in order to develop with Spark and Python. I configured : 1. PyDev with the Python interpreter 2. PyDev with the Spark Python sources 3. PyDev with the Spark Environment variables. This is my Libraries configuration : And this is my Environment configuration : I created a project named CompensationStudy and I want to run an small example and be sure that everything will go smoothly. This is my code : from pyspark import SparkConf, SparkContext import os sparkConf =

别了JetBrains,换Visual Studio

筅森魡賤 提交于 2020-01-06 14:00:24
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Visual Studio一直是我排斥的,这么多年一致不用. 2019年JetBrains的注册码越来越频繁的被封杀,我承认使用盗版不对. 试过Eclipse+pydev搞python,但是todo用起来很不顺手,配制了很久,只有css和html的可以,python和js都不行.另外字体配置也是一大吐槽点,太麻烦了. 试过其他python写的IDE,功能不行,最后想到还有个Visual Studio,试了一下社区版,python / web / 版本管控 / 跳转到定义 / 任务列表等等这些功能也都有,关键不用担心哪天激活失效了,再想办法激活了. 安装时,如果搞python加web的话,只需要勾选" python开发 ",右边的详细信息选前四项就行,如果已经安装了python可以不选第三项的python3 补充一下:如果使用的电信的宽带,勾选了miniconda和python3的话,下载会非常非常慢,有时直接0KB/s,特别是miniconda,请做好准备. 当然了,Visual Studio的缺点就是有点大,另外代码中的todo不会高亮显示,只显示成普通的注释,任务列表的功能是正常的.版本管控的操作略有不同,别的完全没问题. 使用盗版可耻,所以我换Visual Studio Community了. 来源:

Eclipse和PyDev搭建完美Python开发环境(Windows篇)

笑着哭i 提交于 2020-01-06 06:48:20
目录 安装Python python for eclipse插件安装 配置PyDev插件 测试 安装Python 从网站上下载最新的版本,从 http://python.org/download/ 下载。安装过程与其他Windows软件类似。目前稳定版本为Python 2.7.6和Python 3.3.4。 在Windows命令行中使用Python 如果你想要从Windows命令行调用Python,那么需要先设置Python环境变量。 对于Windows,点击控制面板->系统->高级->环境变量。在“系统变量”表单中点击叫做PATH的变量,然后编辑这个变量,把;D:\dev\python2.7.6加到它的结尾。当然,是Python所在的安装目录。 测试python环境变量是否设置成功 C:\Users\jiqinlin>python Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> python for eclipse插件安装 1)方式一 1、下载python for eclipse python for

Execute Python line of code in Eclipse

时间秒杀一切 提交于 2020-01-05 14:51:08
问题 I'm using Pydev with Eclipse. Is it possible to execute a line of python code or a text selection with my IDE? Thanks! 回答1: Pydev documentation is available here For you specific issue I would suggest using the 'Interactive Console' built into PyDev the how-to is located here Also, if you're looking for additional short-cuts for PyDev you can look here Regards Nishant 回答2: CTRL+ALT+ENTER will execute the selected lines. 来源: https://stackoverflow.com/questions/9664539/execute-python-line-of