Second, python_base

Source: Internet
Author: User
Tags install django pip install django sublime text

Python2 and Python3One, the difference between the various methods1. Print Statements
Print (' AAA ')  #方法print ' aaaa '  #语句
2, Python3 incompatible python23, Mac face python3 Configuration environment variable 4, a few Python file introduction

4.1. Python comes with editor

Need to be saved before running

4.2. Default shell mode

4.3. Official Python documentation

4.4. Python container (middle key)

5. Python Directory

5.1, if you do not know the corresponding directory path, you can enter through the terminal:which python3 to view

5.2. Bin directory

5.3, pip command-install a third-party library, also need to add environment variables

5.4. lib Directory--site-packages folder, place the completed Python third-party library

5.5. Third-party libraries: Django, requests, selenium, etc.

6. Install third-party libraries

See what the latest version is--Install with PIP

Terminal to see if Django was installed, or to view a Django version

Python3-m Pip Show Django

Uninstalling an installed Django with a terminal

python3-m pip Uninstall Django

View the Django version (after intentionally entering the wrong Django version, the terminal does not detect the corresponding version will enumerate all)

python3-m pip Install django==24234234

Install the specified Django version

python3-m pip Install django==1.11.2

Install with Pip watercress Source (faster)

python3-m pip Install-i https://pypi.douban.com/simple django==1.11.2
7. Development tool Selection

7.1. Sublime Text

7.2, Pycharm

Second, python_base

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.