How do I get started with Windows python?

Source: Internet
Author: User
Tags posix
Not Configured High

Reply content:

Python is very friendly to Windows, so don't scare new people. To download and install a activepython, you can give the Vc/c# Programmer a helper tool. Another ulipad. When developing a tool, you can use Python with pleasure on Windows.

The value of Python in a *nix environment is not denied, but Python and windows are also great partners. Only if you need to learn *nix knowledge, you need to know how to use Python in *nix.

When you have a preliminary understanding of Python's built-in interactive environment, you can install a ipython to use as a daily Python interactive environment, a shell that is friendlier, and with your deep understanding of Python, you'll find that Ipython has a lot of advanced features to improve your life Production force.

If you use Emacs, Emacs's Python plugin is handy. You can try to integrate the Ipython into a very good integrated development environment. In fact, this question is to ask Python how to get started, add a PC two words, lead to a lot of operating system platform disputes, in fact, can not do. PC, Windows, Linux, Mac OS can also, otherwise light Linux many versions, you can quarrel about a full page of content. Python version, Linux and MAC are the default installation (specific Python version of the difference), Windows simple installation can be, the question behind, in fact, is how to get started Python problem, as for the platform to learn programming good, this is a full page discussion topic.
Go back to the real topic and tell me how I got started with Python, and hopefully it will be useful. Remember the first to find a learning python, it took about two days to familiarize Python's basic syntax (before contacting Python, have n+ years of practical work experience in C language), and then began to follow Udacity Introduction to Comp Uter Science Lesson One lesson of the study, link as follows:
https://www. Udacity.com/course/cs10 1
Remember, be sure to do the exercises at the back of each lesson, which is like the problem analysis and troubleshooting in the actual project, which is very important for mastering the language really.
After learning, according to the knowledge of the course, I started to write a Web page analysis and crawl of the small program, and then know that Google has an App Engine (gae) Support Python, and then in GAE to achieve a number of news site page crawl, and another friend With the completion of the IOS News aggregation website APP server-side development, unfortunately, GAE in the country can not access, so can only be provided to overseas Chinese use. And then want to use Django to complete an e-commerce site template, started with Django-nonrel Deployed on Gae and later had an opportunity to help friends start deploying with pure Django on Host. With these practices, you slowly feel that you are finally getting started on Python.
In fact, learn Python and learn other languages, without it, the only hand-cooked, constantly forcing themselves to practice, in practice constantly encountered problems and solve problems, finally you learned it, this it can be Python, it can be other ~ is your configuration already low enough to run the Python interpreter?
As I know, it's no problem to run a Python computer 8 years ago. You go to the next IPython as interpreter + editor is basically enough. Of course, if the diagram is easy, use IDLE also can.

Ps.
Python is a general-purpose scripting language, and the language is beautifully designed, but his library (especially the library on the Win32) is hard to compliment. Just say, he writes output to the console using Writeconsoleoutputa instead of WRITECONSOLEOUTPUTW, which fully supports Unicode and is not limited by CHCP values. Against @ Shambo. For a newcomer who needs to get started with Python, the platform chooses only one point: learn unfamiliar languages with a familiar platform. The basic "control variable" ah. --I'm really curious that you're the one who sees me "encouraging people to use Windows"?

Most of Python's things are platform-independent. And as I said below, in addition to Web server development, Python can do many other things, such as algorithmic research, such as scientific computing and data Mining (SciPy has Win32 build), such as system automation, and so on. Don't limit your horizons. For and learning, Python's standard library is mostly platform-independent, and the platform difference is not that important at all in the introductory phase.

Then, in Windows such a shell script is difficult to endure, everything almost must rely on the GUI operation of the operating system, any duplication of work will cause a mental breakdown. Compared to other automation tools (BAT, PowerShell, and VBS), the benefits of Python are: Clear syntax, rich environment, and ease of debugging. Compared to the shell (such as Cygwin Bash), Python defaults to the Win32 and COM interop libraries, which makes it easier to perform a variety of operations that are relatively tightly coupled to the system.

According to Steve Jobs, the idea of iTunes for Windows, Python is a glass of cold water for Windows users in Hell.

Answer the original question:
Install ActivePython or directly on IPython installing IPython (Thanks @ Xu Yu), and then find a handy editor (notepad++ and the like are very good, if it is IPython can directly use Notebook / http ipython.org/notebook.ht ml ), then read any textbook or official Tutorial (docs.python.org). Ide:pycharm
Package installation, you need this, http://www. Lfd.uci.edu/~gohlke/pyt honlibs/

Then PowerShell, Ipython, the basic environment is all the best first answer the original question, beginner python, especially for a person without any programming experience is beneficial, under the PC after learning the basic grammar, Can try to write some of their own things such as to their own albums in chronological order, parsing MP3 ID3 information and other interesting small projects to help themselves familiar with the concept of programming.

Tools, Python's own set of that is enough.

If you want to learn more, there are a lot of professional Books Online waiting for you to see, if you do not want to stop at the web development and their own toy program, then welcome into the computer world.

==========================

The first (@ Shambo's answer) actually is such an answer, do not agree.

Python as a highly abstract dynamic language Why can't I go to school in Windows? Why can't I use Windows to learn from running on the interpreter?

Python is not awk,python on Windows can do a lot of things, I would like to write a reptile crawl point of the school site data need to use Linux? Do I have to write a small program to organize the local album to use Linux?

I use Python to learn about file reading, sorting files, writing a few sorting algorithms to go to Linux?

Please separate out the two different functions of the OS, put together thin this heavy does not make any sense. It is irrational to reject a class of things blindly.

========================
Let's just add it:

POSIX API is not all Python, network programming and server-side Python API is highly consistent with Unix system, then I would like to be used as a participle? I used to deal with the text? What do I use to parse multimedia files? I used to do scientific calculations? I used to do image processing?

If Python is bound to die on Unix, at least python should look more like Perl under UNIX!

1. I agree with @ Shambo's description of the Python standard library's close relationship with the POSIX API and UNIX.

2. I do not agree that language should be attached to the system, and that language should be the rational expression of the way things are done.

3. I do not agree that Python is tied to UNIX and network programming.

4. I think the most important thing in learning a language is its grammar, data structure, and reasonable paradigm, which are derived from these foundations. Windows does not have a PowerShell is embarrassed to use must not ask this question in the knowledge. Otherwise the answer chutes look down you never want to get started.

In Yang Jiang's words, you are thinking too much to do too little.
In the words of Nike, Just do Itpython can do Linux scripting language does not mean that it is not suitable for Windows development. In addition to a very small number of three parties, Python can basically guarantee excellent cross-platform, even under Windows can do part of the development of Win32. Limit yourself to getting started Python is a pure waste of time on a Linux platform, and for beginners to be familiar with Linux, the invisible increase in cost is a little bit. Be sure to install Linux. Python is a Unix scripting language, so don't try to go to school in Windows and you'll waste a lot of time.

The rest can be turned over to this topic:
Getting Started with Python-top FAQs

===========

I'd like to explain the answer to anonymous users and @ 张康.

As mentioned in the hacker and painter, Python is the Unix scripting language, and language is not in a vacuum but attached to a system. And Python is attached to Unix. The Python standard library is the POSIX encapsulation. If you have read Apue and are familiar with the standard C and POSIX specifications, you will feel that everything in the Python library is so natural that, in many cases, a POSIX API corresponds to a Python API with no name change. You want to know how an API behaves, just look at the man manual (the Python document is not necessarily written, it assumes you know that the API is just a simple encapsulation of the system API). Everything is a document. Pipeline, FD, process, signal, you don't need to think too much about why this is going on. Because in the Unix world, that's what they are. The presence of Python on Windows is an awkward transplant. To check Microsoft's documentation? You'll only find things like Createfileex. Even if you read the learning file mentioned at @ 张康, you have to set the file to "B" mode to avoid breaking the line break with Windows default text mode. (How can a beginner understand this?) You will not find it so difficult to compile the past when trying to install the MySQL library with PIP. On Windows I'm afraid it's only appropriate to learn the basic axiom of Python, the syntax and data structures.

If you're learning Python, you're not just going to play, but the program you'll write in the future will definitely run on Unix. You will find that this is a more suitable world for hacker life than Windows. Learning a language should not only learn the language itself, but also learn the world in which the language exists, including the entire toolchain. Only in this way can you really understand its design ideas. You will get used to the standard practices of logging, Getopt/argparse, ReadLine, Shebang, daemons, and so on. And on Windows I am afraid you will always only write the py file you wrote as an EXE view. Why don't you just skip Windows now?

============

The problem is confined to the PC, why not install FreeBSD? Because Linux distributions are more suitable for novice users than FreeBSD.

============

Since anonymous users forbid me to continue commenting on his answers to avoid my problems, I'll write them here. You point out that the shell on Windows is so hard to use, and you don't have to, why encourage other people to use it? My point is to learn Python in a UNIX environment, in fact you don't need to be proficient in Unix, just get started with some basic commands. Learning about the POSIX API and some of the files, FD, pipelines and the like in the process of Python, why not? Wouldn't it be a pity to lose these?

In addition, I did not say that Windows is bad, the comment area of Windows users why so excited ...
...
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.