Python builds a multi-version environment--pyenv, virtualenv toss notes

Source: Internet
Author: User
Tags virtualenv

Reference Document: Http://www.it165.net/pro/html/201405/13603.html

Brief introduction:

Pyenv can help you build multiple versions of the Python environment on a single development machine and provide a convenient way to switch

VirtualenvVirtualenv provides a sandbox mechanism, which is to set up a directory as a virtual Python environment, so that users can build multiple virtual environments, the Python version of each environment can be different, or can be the same, And the environment is independent of each other.

Everything went well and encountered a few minor problems, recorded under:

    1. See if this machine is already installed Virualenv

    2. ~/.pyenv/bin/pyenv Insufficient permissions

Add ~/.pyenv/bin/pyenv executable permissions, or you will be prompted

$HOME/.pyenv/bin/pyenv: Insufficient Authority

3.source ~/.bash_profile.

Tips

.. /libexec/pyenv: No file or directory

I looked at the directory structure and found that this file really exists.

So I modified the $home/.pyenv/bin/pyenv file

./libexec/pyenv

Run again

SOURCE ~/.bash_profile

Success!

Python builds a multi-version environment--pyenv, virtualenv toss notes

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.