Python development tools and framework installation, python development tools

Source: Internet
Author: User
Tags mssql server

Python development tools and framework installation, python development tools

Introduction:

In fact, we only know this language for Python. Most of them are developed using. net. They have also learned MVC + EF development before, but because they are completely useless at work, they have not learned anything in blog record.

Recently, I was introduced to the crawler technology, and I learned that Python development crawlers seem very powerful. So I began to get interested. Interest is an important thing, so I began to get familiar with Python.

Then configure the development environment in the most basic way. I suddenly found that it is really convenient to do. net, and there is no need to worry about the development environment. On windows systems, you only need to install Visual Studio and MSSQL Server for development.

Of course, it may not be as simple as I said. To put it bluntly, let's start with the most basic installation of development tools and configuration of the development environment.

 

Step 1: Install development tools

Here I chose JetBrains Pycharm IDE, which is an IDE developed specifically for Python by JetBrains.

JetBrains Official Website: https://www.jetbrains.com/pycharm/

After the download is complete, run the downloaded file and follow the instructions to install it step by step. The installation process is simple, but I still keep a record of my installation steps.

After running the downloaded. exe file, the following interface appears and click Next.

Select the installation address and click Next again.

Next, select "create desktop shortcut" and "create association". You can also choose "Next" by default. Random.

Then wait a few minutes to complete the installation. Click Finish to complete the installation.

How about installation. The next step is to activate it.

Run. The following prompt appears when you open it for the first time, which means you should select import settings. Generally, if you use it for the first time, select the second option without importing the settings, and click OK.

The following interface will appear later, which is the most important step to activate. There are three options available (the first is to enter the account of JetBrains, which will not be introduced here ).

The second type is to enter the registration code, which can be found online. For example: http://blog.csdn.net/limin2928/article/details/69267184

Here I select the third type, using a terminal-authorized server address. You can configure the server on your own or find it online. I found it online...

See: http://www.cnblogs.com/aslongas/p/6854115.html or http://www.cnblogs.com/DswCnblog/p/7083900.html

The following is the last step, which is to select the development tool's shortcut keys, IDE themes, fonts and colors. Click OK.

The installation of this development tool has come to an end. Configure the Python development environment, that is, install the Python code parser.

For Python installation, refer to the installation of Python, which is detailed here and will not be described too much.

After installing Python, install the Python web development framework.

There are many Python development frameworks, so you can learn about them on your own. I have learned about Flask and Django.

For beginners, it is generally recommended to first learn Flask, a lightweight web development framework, and a Django heavyweight web development framework belonging to MVC. (This is not installed here. After all, I am also a beginner ...)

First install Flask a lightweight web development framework.

First, run the windows command line. (Cmd)

Input:Pip install flask

After the installation is complete, test whether the installation is successful. Input: python

Then enter: from flask import Flask

If no error is reported, the installation is successful. Continue to the next step.Install the flask-sqlalchemy package and sqlalchemyI understand it as An ORM framework, similar to the. net EF framework.

First installSqlalchemy. Input: pip install sqlalchemy

After the installation is complete, installFlask-sqlalchemy. Input: pip install flask_sqlalchemy

Then, test whether the installation is successful. Input: from flask_sqlalchemy import SQLAlchemy

If no error is reported, the installation is successful. The web development framework Flask has been installed.

 

Refer:

Http://www.cnblogs.com/mysql-dba/p/6066861.html

 

For use of flask and flask-sqlalchemy, refer to the following address.

Flask Chinese version: http://docs.jinkan.org/docs/flask/

Flask-sqlalchemy Chinese version:Http://www.pythondoc.com/flask-sqlalchemy/index.html

 

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.