How to install the specified Python version in a virtualenv environment

Source: Internet
Author: User
Tags virtual environment virtualenv

Specify Python version: Virtualenv-p python executes the file path custom virtual environment name. If the file path has spaces, use quotation marks.

If you do not specify a python version, the Python version in the environment variable is used by default

You can use the-P python_exe option to specify a PYTHON version when creating a virtual environment

1 #创建python2.7 Virtual Environment 2 Virtualenv-p/usr/bin/python2.7 ENV2.73 4 #创建python3.4 Virtual Environment 5 Virtualenv-p/usr/local/bin/python3.4 E NV3.4

This resolves issues like Python version conflicts for different projects and incompatibility with the Python library version.

Personal Category: Python Module

How to install the specified Python version in a virtualenv environment

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.