PythonBrew

Warning

pythonbrew作者弃坑了,推荐了另外一个项目https://github.com/yyuu/pyenv
功能跟这个有重叠,貌似更强大,用的人也更多

pythonbrew多版本管理工具

pythonbrew是一个python版本管理的工具,具体命令见http://pythonbrew.readthedocs.org/en/latest/

pythonbrew install 2.5.6 的问题

在安装python 2.5.6的时候遇到编译错误make: *** [Modules/getbuildinfo.o] error 1,参考了http://askubuntu.com/questions/398481/make-python2-5-failed-on-ubuntu-13-04这里的解决方法。
在python 2.5.6下载解压后的目录
/HOME/.pythonbrew/build/Python-2.5.6
手动执行
SVNVERSION=not-found ./configure --prefix=/HOME/.pythonbrew/pythons/Python-2.5.6
把python2.5.6安装到了pythonbrew预定的目录就可以了。

pythonbrew管理虚拟环境

1
2
$ pythonbrew venv init
$ pythonbrew venv create proj -p x.x.x

以上2步就创建了一个可用的虚拟环境,然后到需要环境的工程,执行pythonbrew venv use proj就可以使用之前创建的虚拟环境了。

ps:pythonbrew有个别名pybrew。
打赏
  • 版权声明: 本博客所有文章除特别声明外,均采用 Apache License 2.0 许可协议。转载请注明出处!
  • © 2015-2024 RivenZoo
  • Powered by Hexo Theme Ayer
  • PV: UV:

请我喝杯咖啡吧~

支付宝
微信