Python Development Environment Building

Source: Internet
Author: User
Tags virtualenv

1 Python Multi-version management tool PYENV

Pyenv Installation Method:

Yum-y Install git

Yum-y install gcc make patch gdbm-devel openssl-devel sqlite-devel readline-devel zlib-devel Bzip2-debel

Useradd python

Su-python

wget Https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer
wget Https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer

Download one of the above to

Execute permissions on the script and execute the script when you are done downloading

chmod 755 Pyenv-installer

./pyenv-installer

Last prompt to add environment variables after executing script


Export path= "/home/python/.pyenv/bin: $PATH"

Eval "$ (pyenv init-)"

Eval "$ (pyenv virtualenv-init-)"


Add the above to the user's ~/.bash_profile file

Execute source ~/.bash_profile


Install version 3.5.3 Python

Pyenv Install 3.5.3


Pyenv Install--list list available versions


Local typically defines a Python environment as a directory

Globe definition Global scope python environment is generally disabled

The python environment defined after the shell reply-level python environment switch fails

Python virtual machine virtualenv (useful for multi-person collaborative development)

Pyenv virtualenv 3.5.3 heaven353

Pyenv versions

Pyenv Local heaven353

Pyenv version

PIP General Configuration

Python Development Environment Building

Related Article

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.