使用较旧的python版本运行easy\u install

2024-04-25 21:34:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经将python2.7升级到CentOS6.4,这是python2.6的默认版本。你知道吗

所有的库和二进制链接都正确地完成了,当我将python写入命令行时,我还将bash\u profile中的alias设置为运行python2.7 default。你知道吗

但是当我这样做easy_install pip时,它仍然将它安装到python2.6/site-packages中

如何修复它以将包安装到python2.7?你知道吗

谢谢


Tags: installpip命令版本bashdefault链接packages