Python Web technology development software installation

Today, the blogger is just free, and seeing so many posts on the Internet asking for the installation of Python Web technology development software, I will show you one by one here.

Install PiP

click pip

  • [x] First of all, you need to confirm what system your computer is, such as: Windows, Mac os, Linux, Unix, etc.
  • [x] Then, how many bits does your computer have? 32-bit or 64-bit.
  • [x] Finally, confirm whether the python environment you installed corresponds to the system.

Windows computer users can press and hold the Windows徽标+Rkeys at the same time, and then enter the Enter in the run box that appears to cmdenter the dos command state. After entering Enter in the batch process systeminfo, various system parameters of your computer appear, such as:

OS Name:
OS Version:
OS Manufacturer: Microsoft Corporation OS Configuration:
OS Build Type: Multiprocessor Free Registered Owner:
Registered Organization: Product ID:
Initial Installation Date:
System Boot Time:
System Manufacturer: LENOVO System Model: 80RU System Type: x64-based PC

X64 means 64-bit, X86 means 32-bit system 32-bit, and the python environment also needs to be 32-bit.
The system is 64-bit, the python environment needs to be 64-bit, but it is also possible if it is 32-bit.

installation of python

The installation of python will not be introduced here. If you need it, you can click the following link to learn more (python3 series) Windows: Python3.5.1 installation ---------- Python3.6.3 installation

Mac os: Python3.5 installation --------- Python3.6 installation

Linux: Python3.5.3 installation -------- Python3.6.1 installation

Installation of pip under Windows version

We also need to download it on Python's official website. After the download is complete, unzip it to a folder (记住要和Python放在同一目录下), and use the method of adding environment variables (我的电脑,右键-->属性,单击-->高级系统环境设置,单击-->高级,单击-->环境变量,单击-->系统变量下的Path). We add the address of the scripts in Python at the end of the PATH, and then use the CMD console to enter the unzip directory (举个例子:你当前在C盘要进入F盘只需要输入F:,回车即可。cd用于进入子目录,比如)进入F盘下的Python目录, 只需输入cd Python回车即可,cd与Python之间空一格.

C:\Users\YC-Jiang>F: F:>cd Python F:\Python>cd pystall F:\Python\pystall>

Then enter: python setup.py installEnter and wait a few minutes.

Finally, to confirm whether your pip is successfully installed, enter cmd on the command line (windows desktop --> Quick Start --> Accessories --> cmd, if you see something similar to running as an administrator, click OK) or Windows徽标+Renter

pip -—version

Xiaobai, please note: you need to enter a space, note that there are two -, note that you need to execute it directly on the command line instead of entering python (this Chinese paragraph is a reminder for you, not a statement you want to type into the terminal to execute )

If pip has been successfully installed , it will prompt something like the following:

pip 1.5.6 from C:\Python35\lib\site-packages\pip-1.5.6-py3.5.egg

The number after pip is the version number, and the number after from is the installation path of pip. The specific version number and path are different for everyone, but as long as the computer returns a prompt like this, it means that the pip installation was successful.

If your computer does not return a similar prompt, but an error message indicates that pip is not defined, please refer to this method to install pip for your Windows computer: https://taizilongxu.gitbooks.io/stackoverflowabout-python/content/ 8/README.html

Installation of pip under Mac os version

After installing the python environment, mac can directly support pip, you can refer to this: pip installation

Installation of pip under Linux version

方法一

**1.** First click this , download the code to the local directory, then run the .py file with the terminal **2.** Put the code file in the ubuntu user home directory, and use the following code Order:

sudo python get-pip.py sudo python3 get-pip.py

The first command is to install pip; the second command is to install pip3

**3.** Stay connected and the script will automatically download something. After the execution is complete, use the pip --version command to check whether the installation is successful

方法二

**1, **Install easy_install

sudo apt-get install python-setuptools

**2, **then execute

sudo easy_install pip

**3, **After the execution is completed, use the pip --version command to check whether the installation is successful

Install third-party libraries with pip

Enter the following code in python3: (PackageName is the name of the third-party library, such as lxml, requests, Beautifulsoup)

pip3 install PackageName

Enter the following code in python2:

pip install PackageName

Install Django

Whether you are Windows, Mac, or Linux, we use pip to install. Of course, you need to make sure that you have successfully installed pip in the previous step. Open the terminal or command line. If you want to install into python 3, you need to enter:

pip3 install Django

If you have problems with your network and cannot install successfully, you can enter this:

pip3 install Django --index-url https://pypi.mirrors.ustc.edu.cn/simple

If you have installed both versions of python 2 and 3, you may encounter problems with the installation directory, you can replace it with

python3 -m pip install Django

If you want to install into python 2, you need to type:

pip install Django

To check if the installation was successful, we can type in the terminal/command line:

python3 import django django.VERSION

If installed in python2, enter: python The installation is successful and the current Django version will be displayed: (1, 9, 1, 'final', 0)

Remember to go to your python installation directory and use the above command.

My installation is like this:

C:\Users\YC-Jiang>F: F:>cd Python F:\Python>pip install django -i https://pypi.douban.com/simple/ Collecting django Downloading https://pypi.doubanio.com/packages/3d/81/7e6cf5cb6f0f333946b5d3ee22e17c3c3f329d3bfeb86943a2a3cd861092/Django-2.0.3-py3-none-any.whl (7.1MB) 100% |████████████████████████████████| 7.1MB 365kB/s Collecting pytz (from django) Downloading https://pypi.doubanio.com/packages/3c/80/32e98784a8647880dedf1f6bf8e2c91b195fe18fdecc6767dcf5104598d6/pytz-2018.3-py2.py3-none-any.whl (509kB) 100% |████████████████████████████████| 512kB 682kB/s Installing collected packages: pytz, django Successfully installed django-2.0.3 pytz-2018.3

You can also learn from this Django installation

Install pyflakes

Open a terminal or command line, if you want to install into python 3, you need to enter:

pip3 install pyflakes

If you have problems with your network and cannot install successfully, you can enter this:

pip3 install pyflakes --index-url https://pypi.mirrors.ustc.edu.cn/simple

If you have installed both versions of python 2 and 3, you may encounter problems with the installation directory, which can be changed to the following: python3 -m pip install pyflakesIf you want to install into python 2, you need to enter:pip install pyflakes

Install Pychram

Introduction to PyCharm

PyCharm is a Python IDE with a complete set of tools that can help users improve their efficiency when developing in the Python language, such as debugging, syntax highlighting, project management, code jumping, smart prompts, auto-completion, unit testing, version control . Additionally, the IDE provides advanced features to support professional web development under the Django framework.

PyCharm 2017 installation

**1.** Software location PyCharm2017/64 bit download address: Link: https://pan.baidu.com/s/1nwhmx2D Password: pc61

**2, ** Right-click the software package and select unzip to pycharm201701

**3.** Find pycharm-professional-171.3780.47 in the decompressed folder, right-click to open it.02

**4.** Click Next.03

**5. **Click Browse to change the installation path. It is recommended to install to a disk other than C drive. You can create a PyCharm 2017 folder on D drive or other drive, and then click Next.04

**6, **64-bit system check 64-bit launcher, 32-bit system check 32-bit launcher, and then click Next.05

**7.** Click Install.06

**8, **Installation (wait about 5 minutes).07

**9.** Click Finish.08

**10, **Find the PyCharm 2017 folder after the installation package is decompressed, right-click to open it.09

**11.** Find the lib folder and right-click to open it.10

**12. **Select resource.cn.jar, right-click to copy.11

**13.** Open the lib folder in the installation folder PyCharm 2017, then right-click in the blank space and select Paste.12

**14.** Find JetBrainsPyCharm 2017.1 x64 on the desktop, right-click to open it.13

**15.** Click OK.14

**16.** Click Accept.15

**17. **Check License server, and fill in http://intellij.mandroid.cn/ (or http://idea.imsxm.com/ or http://idea.iteblog. com/key.php) any one of the three, and then click Activate. 16

**18.** Click OK.17

**19, **The installation is complete.18

Pycharm installs third-party libraries

File-->Default Settings-->Version Control-->Project InterPreter--> the green + on the right -->Search library name-->install package

If you don't understand children's shoes, you can click the following example: Pycharm installs the third library

Well, today's software installation and sharing about Python web technology development is over. If you have any questions, you can add me on WeChat: ZY20160801, you can send information or leave a message (the comment box at the end of the page or leave a message on the message board) to communicate and learn from each other.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324910573&siteId=291194637