作者gigigigi (gigigigi)
看板Python
标题[问题] python 自己编译2.79版本
时间Mon Oct 5 20:56:46 2015
我自己编译了python 2.79 版本
安装在 /usr/local/python-2.7.9 下
有两个疑问
1. 就是我有在使用 ipython 那我要怎麽让 ipython 使用编译的 python 2.7.9 版本 ,
而不是系统的 python 2.7.3
2. 就是我透过pip or apt-get install 安装 python Third-party library
要怎麽让 pip 跟 apt-get install 安装的 library 安装到我 /usr/local/python-2.7.9 底下?
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 175.182.167.29
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1444049809.A.6CA.html
1F:推 KJFC: 改path? 10/06 08:40
2F:→ amigcamel: pyenv? 10/06 11:16
3F:→ kenduest: 改 PATH 变数路径就好... 不过 2.7.3 vs 2.7.9 10/06 18:00
4F:→ kenduest: 这样版本差异有必要这样编译吗?还是你有什麽需求 10/06 18:01
5F:→ kenduest: 另外你这样做後续就不适合使用 apt-get 安装所需要的 10/06 18:01
6F:→ kenduest: python module,你都需要都用安装上自己的版本 pip 10/06 18:01