Upgrade Python to 2.6 on Mac

2019-01-10 20:03发布

I'd like to upgrade the default python installation (2.5.1) supplied with OS X Leopard to the latest version. Please let me know how I can achieve this.

Thanks

7条回答
手持菜刀,她持情操
2楼-- · 2019-01-10 20:28

May I suggest you leave the "Default" be, and install Python in /usr/local/bin.

  1. Download python
  2. Unzip it
  3. ./configure
  4. make
  5. sudo make install

done.

Since /usr/local/bin comes before /usr/bin in the $PATH, you will invoke 2.6 when you type python, but the OS will remain stable...

查看更多
登录 后发表回答