d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Looking 4 A Good Software > To Write / Test Python Scripts
Prev12
Add Reply New Topic New Poll
Member
Posts: 4,688
Joined: Jun 20 2009
Gold: 12,590.00
Apr 17 2014 08:34am
Quote (carteblanche @ Apr 16 2014 05:48pm)
intellij
vim
notepad
IDLE


vim all day
Member
Posts: 62,215
Joined: Jun 3 2007
Gold: 9,039.20
Apr 17 2014 09:45am
PyCharm is good and anal too, will keep you straight, but you might miss out on some of the more essential stuff.

If you want something lightweight use Sublime Text, Notepad++, or something.

Get used to using a CLI to run and debug your code.

Quote (eric838 @ Apr 16 2014 07:22pm)
got an error message while trying to use python @ cmd


Assuming this is the problem, fix your %PATH% environment variable, add C:\Python27 separated by a “;”



https://en.wikipedia.org/wiki/PATH_(variable)

How it should work after typing python.

Code
PS C:\Users\%username%> python
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>


Also, typing start python in command could also be another way to start a Python interpreter but this is directly from C:\Python27\python.exe.

If you type echo %PATH% in command and C:\Python27 is not listed, then you're going to have problems forever until you fix it, so may as well be the first thing you check.



Member
Posts: 27,086
Joined: Mar 7 2008
Gold: 685.00
Apr 25 2014 05:15pm
now its working but have to write/test python script on windows with a good program
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Apr 25 2014 05:31pm
Quote (eric838 @ Apr 25 2014 07:15pm)
now its working but have to write/test python script on windows with a good program


if only someone offered you some suggestions earlier in this topic...

intellij
vim
notepad
notepad++
IDLE
Member
Posts: 27,086
Joined: Mar 7 2008
Gold: 685.00
Apr 25 2014 07:57pm
Quote (carteblanche @ 25 Apr 2014 18:31)
if only someone offered you some suggestions earlier in this topic...

intellij
vim
notepad
notepad++
IDLE


we can test @ notepad++? Already tested once but that make python.exe opening then closing in half of a second
Member
Posts: 62,215
Joined: Jun 3 2007
Gold: 9,039.20
Apr 26 2014 12:49am
Quote (eric838 @ Apr 25 2014 07:57pm)
we can test @ notepad++?  Already tested once but that make python.exe opening then closing in half of a second


You run the script from Command, say you write something simple print "OP is silly" if you are using Windows make sure it is saved as silly.py then open Command and type python C:\Path\To\Your\Script\silly.py, you can CD C:\Path\To\Your\Script and then run python silly.py or if you have figured out your PATH Variable then you can enter this in Command:

Code
assoc .py=Python.File
ftype Python.File=c:\Python27\python.exe "%1" %*


This should allow you to type silly.py or silly and execute it without specifying a C:\path\to\your\script

https://docs.python.org/2/using/windows.html

If you want a program to run directly from the IDE then I would suggest PyCharm.
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Apr 26 2014 08:31am
Quote (eric838 @ Apr 25 2014 07:57pm)
we can test @ notepad++?  Already tested once but that make python.exe opening then closing in half of a second


as it should
Member
Posts: 12,361
Joined: Aug 5 2007
Gold: 1,500.00
Apr 26 2014 10:44pm
Quote (eric838 @ Apr 25 2014 06:57pm)
we can test @ notepad++?  Already tested once but that make python.exe opening then closing in half of a second


python script for notepad++, nuff said
Member
Posts: 27,086
Joined: Mar 7 2008
Gold: 685.00
Apr 26 2014 11:00pm
using pycharm
Member
Posts: 12,361
Joined: Aug 5 2007
Gold: 1,500.00
Apr 27 2014 01:03am
Quote (eric838 @ Apr 26 2014 10:00pm)
using pycharm


let us know how u like it
Go Back To Programming & Development Topic List
Prev12
Add Reply New Topic New Poll