ubuntu 安装 pythonenv

This will get you going with the latest version of pyenv and make it easy to fork and contribute any changes back upstream.

  1. Check out pyenv where you want it installed. A good place to choose is $HOME/.pyenv (but you can install it somewhere else).

    $ git clone https://github.com/yyuu/pyenv.git ~/.pyenv
    
  2. Define environment variable PYENV_ROOT to point to the path where pyenv repo is cloned and add $PYENV_ROOT/binto your $PATH for access to the pyenv command-line utility.
    $ echo ‘export PYENV_ROOT="$HOME/.pyenv"‘ >> ~/.bash_profile
    $ echo ‘export PATH="$PYENV_ROOT/bin:$PATH"‘ >> ~/.bash_profile
    

    Zsh note: Modify your ~/.zshenv file instead of ~/.bash_profile. Ubuntu note: Modify your ~/.bashrc file instead of ~/.bash_profile.

  3. Add pyenv init to your shell to enable shims and autocompletion. Please make sure eval "$(pyenv init -)" is placed toward the end of the shell configuration file since it manipulates PATH during the initialization.
    $ echo ‘eval "$(pyenv init -)"‘ >> ~/.bash_profile
    

    Zsh note: Modify your ~/.zshenv file instead of ~/.bash_profile. Ubuntu note: Modify your ~/.bashrc file instead of ~/.bash_profile.

    General warning: There are some systems where the BASH_ENV variable is configured to point to .bashrc. On such systems you should almost certainly put the abovementioned line eval "$(pyenv init -) into .bash_profile, andnot into .bashrc. Otherwise you may observe strange behaviour, such as pyenv getting into an infinite loop. See #264for details.

  4. Restart your shell so the path changes take effect. You can now begin using pyenv.
    $ exec $SHELL
    
  5. Install Python versions into $PYENV_ROOT/versions. For example, to download and install Python 2.7.8, run:
    $ pyenv install 2.7.8
时间: 2024-07-31 00:40:38

ubuntu 安装 pythonenv的相关文章

Ubuntu 安装 JDK 7 / JDK8 的两种方式

ubuntu 安装jdk 的两种方式: 1:通过ppa(源) 方式安装. 2:通过官网下载安装包安装. 这里推荐第1种,因为可以通过 apt-get upgrade 方式方便获得jdk的升级 使用ppa/源方式安装 1.添加ppa sudo add-apt-repository ppa:webupd8team/java sudo apt-get update 2.安装oracle-java-installer jdk7 sudo apt-get install oracle-java7-inst

ubuntu安装pip3

当初入门Linux 使用的是centos,那个时候是6.0版本,当然现在主流在使用的也是6.0系列的,现在都到6.7了,那个时候centos还是独立的,现在被redhat收购,本来一个红蓝就差不多,个人感觉除了yum源不一样,其他没有区别,更搞笑的是,redhat用了centos 的开放yum 源,升级后居然变成centos 了.因为yum用的太顺手了,所以开始挺排斥ubuntu的,觉得apt-get很不爽,不过最近学python,感觉用centos各种不爽,怪不得都说开发最好用ubuntu.所

ubuntu 安装 git & smartgit

1. 安装 git # sudo apt-get update# sudo apt-get install git ? 2. 配置 # git config --global user.name "Your Name" # git config --global user.email "[email protected]" ? 3. 查看配置 # gitconfig--list ? 4. ?安装 SmartGit # cd ~/Downloads # wget?ht

ubuntu 安装 amp 环境 和 svn 命令

我是使用的集成安装 sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server 回车,会让输入密码: 安装过程中会让输入mysql root管理员的密码 如图: 安装完成之后,在浏览器地址栏中输入 localhost 测试下,能看到 It Works ! 表示环境安装成功! ------------------------------ Ubuntu 安装 svn 客户端 终端操作命令: sudo apt-get

ubuntu 安装ffmpeg VLC

ffmpeg安装 1.下载ffmpeg源码 ffmpeg.org 2.解压 tar -jvxf ffmpeg-2.5.2.tar.bz2 3.进入目录 ./configure 1)解决 ffmpeg yasm not found, use --disable-yasm for a crippled build ref:blog.csdn.net/ranxiedao/article/details/16359183 A 如果是Windows系统, 从网上下载一个 yasm.exe 并安装在ming

Ubuntu安装Latex

Ubuntu安装Latex  http://www.oschina.net/question/12_63776 Ubuntu下Latex中文环境配置  http://vistb.net/2012/05/config-latex-ch-env-in-ubuntu/ Ubuntu中配置LaTeX中文的方法http://blog.csdn.net/yangzhuoluo/article/details/5697205

Ubuntu 安装java环境搭建

1.下载JDK 8从http://www.oracle.com/technetwork/java/javasebusiness/downloads/选择下载JDK的最新版本 JDK 8. 2.解压文件$ sudo mkdir /usr/lib/jvm$ sudo mv jdk-8u11-linux-x64.tar.gz /usr/lib/jvm/ $ cd /usr/lib/jvm/$ sudo tar -zxvf jdk-8u11-linux-x64.tar.gz$ rm ./jdk-8u11

Ubuntu安装教程--Win7系统中含100M保留分区

1.检查 Win7 保留分区 1)进入 Win7 打开库文件夹,在左侧栏找到"计算机",瞄准点右键选择"管理"菜单: 2)在出来的管理面板左边找到"磁盘管理",点击它,在右边出来各个分区: 注意:如果里面有一个100M的系统保留分区,则进行下面(3-6)的操作,否则请跳至第2步复制启动文件: 3)瞄准100M"系统保留"分区点右键,选择"更改驱动器号和路径"菜单: 4)在出来的面板中,点左下角的"

ubuntu 安装 apk

adb devices查看你的所有设备 然后adb -s 设备序列号 install XXX.apk -s 用来指定设备 ubuntu 安装 apk,布布扣,bubuko.com