Python Environment pyenv

Source: Internet
Author: User

  1. [email protected]: ~# apt-get install Python3 python3-pip git

  2. Export Pyenv_root=/install/path Specify PYENV installation path

  3. [email protected]: ~# curl-l Https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | Bash

  4. Use pyenv to manage Python for multi-version coexistence

  5. #[email protected]: ~# VIM/ROOT/.BASHRC
    #export Path=/root/.pyenv/bin: $PATH

  6. [email protected]: ~# vim/etc/profile.d/pyenv.sh#!/bin/bash
    #File Name:/etc/profile.d/pyenv.sh
    #Define environment variable
    Export pyenv_root= "$HOME/.pyenv"
    Export path= "$PYENV _root/bin: $PATH"
    Eval "$ (pyenv init-)"

  7. source/etc/profile.d/pyenv.sh

  8. [email protected]: ~# pyenv Install 3.4.2 here may be an error

  9. 157  2016-06-18 19:01:34 pyenv install--list
      158  2016-06-18 19:04:56 apt-get Install make
      159  2016-06-18 19:02:15 pyenv install 3.4.2
      160  2016-06-18 1 9:11:45 cd ~/.pyenv/plugins/python-build && git pull
      161  2016-06-18 19:12:19 pyenv Install 3.4.2< br>  162  2016-06-18 19:18:05 curl-iv https://buy.itunes.apple.com/verifyReceipt
      163  2016-06-18 19:18:13 pyenv Install 3.4.2
      164  2016-06-18 19:45:23 pip3 install jupyter
      165  2 016-06-18 19:32:03 pyenv Install 3.4.2
      166  2016-06-18 19:47:36 jupyter notebook
      167  2016- 06-18 23:29:45 jupyter Notebook
      168  2016-06-18 23:33:41 jupyter notebook--ip=0.0.0.0

  10. [email protected]: ~# jupyter notebook web version of a Ipython

  11. R[email protected]: ~/.pip# vim pip.conf configuration pip

    [Global]
    Index-url = http://pypi.douban.com/simple Add the PIP source of the domestic watercress
    Error more browse official website git

This article is from the "11727697" blog, please be sure to keep this source http://11737697.blog.51cto.com/11727697/1790712

Python Environment pyenv

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.