Development and operating environment of deployment Python3.5 under Deepin system

Source: Internet
Author: User

Development and operating environment of deployment Python3.5 under Deepin system

1 overview

I small white one, because recently to learn the Python interface automation testing, so record the relevant learning experience, I hope the same as my small white friends can be helpful.

2 Downloads

pythonDownload the environment under the specified platform on the official website python3.5

wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz

For example, download the downloaded file asPython-3.5.1.tgz

3 Decompression

Then unzip:

Tar-xvzf python-3.5.1.tgz

Build DirectoryPython-3.5.1

4 Installation

Go to Python-3.5.1 the directory and configure:

./configure--with-ssl--prefix=/usr/local/python35

Compile and install:
Makemake Install
5 Setting up a virtual environment

When using the python development environment, it is generally built in a virtual environment, which can form the isolation of the project running environment and prevent the interference of different dependent projects.

Since python3.5 pyvenv there are tools in it, there is no need to reinstall virtualenv the three-party library:

[Email protected]:~/desktop/tester/python-3.5.1/tools/scripts$ ls-l|grep pyvenv-rwxr-xr-x 1 Vast vast 232 December 7 Pyve Nv

Go to the Pyvenv directory and run directly:

./pyvenv

You can generate a cloned python3.5.1 virtual environment, and then run:

source./py3venv/bin/activate

Can make the current terminal environment into python3.5.1 the environment, see the terminal suffix with __venv_prompt__ indicates that has been successful:

Then enter python3 the command and you will see python3.5.1 the running interface that you entered:

6 Installing PIP

After the virtual environment is established, the next step is to install a third-party library management tool for the virtual environmentpip

First download the get-pip.py address via the wget command in https://bootstrap.pypa.io/get-pip.py

wget https://bootstrap.pypa.io/get-pip.py

Then you need to run the file in Python.

Python get-pip.py
However, the terminal prompt is not sufficient
Always prompt error, search for a long time, just understand, deepin default does not set the root account of the initial password
Su passwd root

Set a password

Then do it again:

You can then repeat the above actions

For participation only, if there is any wrong, please criticize, study with each other

Reference: http://www.cnblogs.com/beer/p/5557497.html

Development and operating environment of deployment Python3.5 under Deepin system

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.