• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell
您的位置:首页 > 脚本语言 >python > linux 下实现python多版本安装实践

linux 下实现python多版本安装实践

作者:hebedich 字体:[增加 减小] 来源:互联网

hebedich 通过本文主要向大家介绍了linux查看python版本,linux python 版本,linux更新python版本,python linux,linux安装python2.7等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com

使用pythonbrew

easy_install pythonbrew
[root@li637-23 schirm]# pythonbrew_install

Well-done! Congratulations!

The pythonbrew is installed as:

  /root/.pythonbrew

Please add the following line to the end of your ~/.bashrc

  [[ -s "$HOME/.pythonbrew/etc/bashrc" ]] && source "$HOME/.pythonbrew/etc/bashrc"

After that, exit this shell, start a new one, and install some fresh
pythons:

  pythonbrew install 2.7.2
  pythonbrew install 3.2

For further instructions, run:

  pythonbrew help

The default help messages will popup and tell you what to do!

Enjoy pythonbrew at /root/.pythonbrew!!
[root@li637-23 schirm]# vim /root/.pythonbrew
[root@li637-23 schirm]# . ~/.bashrc
[root@li637-23 schirm]# pythonbrew install 2.7.2
Downloading Python-2.7.2.tgz as /root/.pythonbrew/dists/Python-2.7.2.tgz
######################################################################## 100.0%
Extracting Python-2.7.2.tgz into /root/.pythonbrew/build/Python-2.7.2

This could take a while. You can run the following command on another shell to track the status:
  tail -f "/root/.pythonbrew/log/build.log"

Installing Python-2.7.2 into /root/.pythonbrew/pythons/Python-2.7.2
</div>

怎么样小伙伴们,是不是很简单,有相同需求的小伙伴们自己参考下吧

</div>

您可能想查找下面的文章:

  • Linux下为不同版本python安装第三方库
  • python版本的读写锁操作方法
  • python版本的读写锁操作方法
  • linux下python抓屏实现方法
  • Linux下Python获取IP地址的代码
  • linux 下实现python多版本安装实践
  • python获取Linux下文件版本信息、公司名和产品名的方法
  • python获取Linux下文件版本信息、公司名和产品名的方法

相关文章

  • 在Python3中使用asyncio库进行快速数据抓取的教程
  • python中异常报错处理方法汇总
  • Python translator使用实例
  • Python自动化测试ConfigParser模块读写配置文件
  • Python性能优化技巧
  • Python使用py2exe打包程序介绍
  • Python 代码性能优化技巧分享
  • 使用python加密自己的密码
  • 从零学python系列之新版本导入httplib模块报ImportError解决方案
  • 利用PyInstaller将python程序.py转为.exe的方法详解

文章分类

  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell

最近更新的内容

    • python使用webbrowser浏览指定url的方法
    • python实现指定字符串补全空格的方法
    • 详解python 发送邮件实例代码
    • python使用beautifulsoup从爱奇艺网抓取视频播放
    • Django中实现一个高性能计数器(Counter)实例
    • Python的消息队列包SnakeMQ使用初探
    • python使用os模块的os.walk遍历文件夹示例
    • python在Windows8下获取本机ip地址的方法
    • python操作sqlite的CRUD实例分析
    • Python的ORM框架中SQLAlchemy库的查询操作的教程

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有