pydev

PyDev import in eclipse

℡╲_俬逩灬. 提交于 2019-12-23 22:55:01
问题 I just installed Eclipse Indigo, in Ubuntu 10.04 LTS, and installed Pydev with it. I did the following: (1) set python interpreters by pressing Auto config in Window > Preferences > PyDev > Editor > Interpreter-Python (2) set system Pythonpath through Window > Preferences > PyDev > Editor > Interpreter-Python (a) pressed New Folder and added /usr/lib/python2.6 I am trying to run an openrave code in eclipse and have all the required openrave libraries installed. "openravepy" is in the

TensorFlow with Eclipse

a 夏天 提交于 2019-12-23 21:23:06
问题 I'm trying to run the TensorFlow Python examples for with Eclipse Mars for Mac OS X, but I'm getting the following error: Unresolved import: tensorflow.python.platform The error is raised on the 3rd line: from __future__ import absolute_import from __future__ import print_function import tensorflow.python.platform I'm new to Python and TensorFlow. I'm using PyDev for Eclipse. I read somewhere that I can add code to the "External Libraries" folder but I'm not sure where the TensorFlow library

How do I select a file within a .app in Mac OS X?

谁说我不能喝 提交于 2019-12-23 19:34:08
问题 I'm trying to configure PyDev in eclipse, and as part of that I'm trying to add some source folders to the External Libraries section for PYTHONPATH. However, when I click "Add source folder" in eclipse, it's not letting me drill into any .app directories. Normally, in regular Finder, I would right click and choose "Show Package Contents", but through the "Add Source Folder" in Eclipse, all the .apps are greyed out and I can't right click on them. Any ideas on how I get past this?

Pydev: Send stdout to a real (tty) terminal

二次信任 提交于 2019-12-23 18:10:30
问题 Following up on a previous question ( subprocess: PyDev console vs. cmd.exe ), is there a way to change where PyDev sends stdout--namely to a tty terminal? I've come across several instances where not having a tty terminal has been limiting. For the case of the subprocess module, I can use the CREATE_NEW_CONSOLE flag, but in other instances, such as in this question ( Print \r correctly in console ), the PyDev console doesn't seem to support using escape characters. Any thoughts are

How do you create a PyDev project from existing code?

限于喜欢 提交于 2019-12-23 15:21:00
问题 I have created a python project which I began development in TextPad and Command Prompt. http://pydev.org/manual_101_project_conf.html This documentation briefly mentions creating a project with existing code, but I can't make sense of it... Is says: Create the project as if it was a new project, but leave the create default 'src' folder option unchecked and point the location to the location of the sources (or a level above) -- the next tutorial page will explain the steps to configure the

Whats the shortcut to Debug in PyDev using Eclipse

陌路散爱 提交于 2019-12-23 09:50:32
问题 The shortcut key is F11 to start debugging. But issue is that I have to be on that file and then hit F11 to start debugging. Eg. my file to launch the application is " launch.py " and " example.py ". example.py is open in the editor whereas launch.py is not. Now, if I hit F11 it will try to launch the application using " example.py " and terminates due to error (as expected). So then I have to open the " launch.py " in the editor and then hit F11 to start debugging the application. Is there

Getting Theano to use the GPU

梦想的初衷 提交于 2019-12-23 09:00:16
问题 I am having quite a bit of trouble setting up Theano to work with my graphics card - I hope you guys can give me a hand. I have used CUDA before and it is properly installed as would be necessary to run Nvidia Nsight. However, I now want to use it with PyDev and am having several problems following the 'Using the GPU' part of the tutorial at http://deeplearning.net/software/theano/install.html#gpu-linux The first is quite basic, and that is how to set up the environment variables. It says I

Problems when showing Interpreter (IPython) after running Program in PyCharm

妖精的绣舞 提交于 2019-12-23 06:47:05
问题 I have PyCharm Professional Edition 3.5 5.0 configured to use IPython when possible and in my Run/Debug Configurations I set show interpreter afterwards I use the interactive Interpreter a lot and I really like IPython, but there are some things that I don't like about the way this is handled in PyCharm: any input() in my programs return empty strings. Additionally, when an error occurs I can't interact with the Program anymore. (you can when you run a Python program with the -i flag) There

Debugging Fabfile's Using An IDE

自古美人都是妖i 提交于 2019-12-23 04:38:29
问题 I would like to be able to debug a fabric file, but for some reason when I run/debug my fabfile.py using my IDE, nothing seems to happen. I see status messages that a debug process is starting, but it just ends and there is no output in my debug console. I have tried this with Wing IDE and PyDev/Eclipse to no avail. 回答1: Here is how I ended up setting this up using PyCharm. I did this with the professional version but I think this would work with the free community edition as well. If you try

Best method for managing Jython packages

三世轮回 提交于 2019-12-22 18:28:48
问题 I'm building a Jython program in PyDev and in the process have found need for some packages that are not standard for Jython 2.5 but that are standard for CPython 2.7. To this point, I've been using python's easy_install and incorrectly pointing PyDev to /usr/lib/python2.7/dist-packages. While incorrect, this has worked for the past few months until today when I encountered this problem; one of the Python 2.7 libs taking prescient over a Jython lib and causing havok. My question is two-fold: