Installing gedit for python programming in Windows
By: zhmark in python Tutorials on 2011-03-04
Windows is a big problem for Python. Sometimes you install Python and one computer will have no problems, and another computer will be missing important features. If you have problems, please visit: http://docs.python.org/faq/windows.html.- Go to http://projects.gnome.org/gedit/ with your browser, get the gedit text editor, and install it.
- Make sure you can get to gedit easily by putting it on your desktop and/or in Quick Launch. Both options
are available during setup.
(a) Run gedit so we can fix some stupid defaults it has.
(b) Open Edit->Preferences select the Editor tab.
(c) Change Tab width: to 4.
(d) Select (make sure a check mark is in) Insert spaces instead of tabs.
(e) Turn on "Automatic indentation" as well.
(f) Open the View tab turn on "Display line numbers". - Find your "Terminal" program. It's called Command Prompt. Alternatively just run cmd.
- Make a shortcut to it on your desktop and/or Quick Launch for your convenience.
- Run your Terminal program. It won't look like much.
- In your Terminal program, run python. You run things in Terminal by just typing their name and hitting
RETURN.
(a) If you run python and it's not there (python is not recognized..). Install it from http://python.org/download
(b) Make sure you install Python 2 not Python 3.
(c) You may be better off with ActiveState Python especially when you miss Administrative rights - Hit CTRL-Z (^Z), Enter and get out of python.
- You should be back at a prompt similar to what you had before you typed python. If not find out why.
- Learn how to make a directory in the Terminal. Search online for help.
- Learn how to change into a directory in the Terminal. Again search online.
- Use your editor to create a file in this directory. Make the file, "Save" or "Save As...", and pick this directory.
- Go back to Terminal using just the keyboard to switch windows. Look it up if you can't figure it out.
- Back in Terminal, see if you can list the directory to see your newly created file. Search online for how to list a directory.
C:\Documents and Settings\you>python ActivePython 2.6.5.12 (ActiveState Software Inc.) based on Python 2.6.5 (r265:79063, Mar 20 2010, 14:22:52) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> ^Z C:\Documents and Settings\you>mkdir mystuff C:\Documents and Settings\you>cd mystuff ... Here you would use gedit to make test.txt in mystuff ... C:\Documents and Settings\you\mystuff>C:\Documents and Settings\you\mystuff>dir Volume in drive C is Volume Serial Number is 085C-7E02 Directory of C:\Documents and Settings\you\mystuff 04.05.2010 23:32 . 04.05.2010 23:32 .. 04.05.2010 23:32 6 test.txt 1 File(s) 6 bytes 2 Dir(s) 14 804 623 360 bytes free
Add Comment
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
- Your name, rating, website address, town, country, state and comment will be publicly displayed if entered.
- Aside from the data entered into these form fields, other stored data about your comment will include:
- Your IP address (not displayed)
- The time/date of your submission (displayed)
- Your email address will not be shared. It is collected for only two reasons:
- Administrative purposes, should a need to contact you arise.
- To inform you of new comments, should you subscribe to receive notifications.
- A cookie may be set on your computer. This is used to remember your inputs. It will expire by itself.
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
- Although the administrator will attempt to moderate comments, it is impossible for every comment to have been moderated at any given time.
- You acknowledge that all comments express the views and opinions of the original author and not those of the administrator.
- You agree not to post any material which is knowingly false, obscene, hateful, threatening, harassing or invasive of a person's privacy.
- The administrator has the right to edit, move or remove any comment for any reason and without notice.
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
- Data Science
- Android
- React Native
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Python program to get location meta data from an image
Retrieve Twitter posts and comments using Python
How to install Jupyter in Ubuntu and make it accessible through Apache Reverse Proxy
Python Basics - Setting up your Python Development Environment
Schwartzian Transform in python
Multidimensional list (array) in python
Perl's chomp() equivalent for removing trailing newlines from strings in python
Comments