我有LinuxMitn與python2.7和python3.4。但對於公司開發的一些特定應用,我需要python2.6。有人可以告訴我如何正確安裝它嗎?在Linux上安裝python2.6Mint
-1
A
回答
1
下載&編譯:
wget http://www.python.org/path/to/Python-2.6.x.tgz
tar -xzf Python-2.6.x.tgz
cd Python-2.6.x
編譯:
./configure
make
sudo make install
當你運行應用程序確保您鍵入您的python2.6的二進制文件的完整路徑:
/usr/local/bin/python2.6
或者如果你不需要python3.4那麼簡單,你可以重命名舊的二進制和創建符號鏈接到新的python2.6的(它會幫你安裝在默認情況下python2.6的相關模塊)
mv /usr/bin/python /usr/bin/python3.4.old
ln -s /usr/local/bin/python2.6 /usr/bin/python
0
您還可以檢查the deadsnakes PPA的解決方案,但我發現, python也相當不錯,@Satish給出了一套很好的指導來做到這一點。
相關問題
- 1. 在Linux上安裝
- 2. 在Linux上安裝
- 3. 在Linux上安裝
- 4. 在Linux上安裝Java
- 5. 在Linux上安裝tensorflow
- 6. 錯誤在Linux上安裝
- 7. 在Linux上安裝Sybase ASE
- 8. 在Redhat Linux上安裝Mercurial
- 9. 在Linux上安裝R包
- 10. 在linux上安裝ephem
- 11. 在Linux上安裝Python Mint
- 12. 在Linux上安裝Freeglut
- 13. 在HELiOS Linux上安裝USB
- 14. 在linux上安裝honeyd
- 15. 在Linux上安裝mingw
- 16. Webpack不在Linux上安裝
- 17. 在Linux上安裝SciPy Debian
- 18. 在Linux上安裝GWT
- 19. SimpleGUICS2Pygame在Linux上安裝
- 20. 在Linux上安裝openjms
- 21. Cordova Android在Linux上安裝
- 22. 在OpenSuse Linux上安裝Docker
- 23. 在Linux上安裝Apache Spark
- 24. 在Linux上安裝libs3
- 25. 在Linux上安裝Oracle DB
- 26. nginx安裝在linux上
- 27. 在Linux上安裝Rglpk
- 28. 在Linux上安裝TBB 11.04
- 29. 在Linux上安裝xvfb
- 30. 在linux上安裝NPM
您可以隨時從源代碼進行編譯。 – 4ae1e1
如果你的公司要求你開發Python 2.6,他們爲什麼不提供適當的環境開發? – chepner
從源代碼編譯並創建符號鏈接,以便'python26'指向此版本的python。請小心,以免'python'指向版本2.6 –