在 virtualenv 中使用不同的 Python 版本 - Use different Python version with virtualenv

問題:

I have a Debian system currently running with python 2.5.4.我有一個當前運行 python 2.5.4 的 Debian 系統。 I got virtualenv properly installed, everything is working fine.我正確安裝了 virtualenv,一切正常。 Is there a possibility that I can use a virtualenv with a different version of Python?是否有可能將 virtualenv 與不同版本的 Python 一起使用?

I compiled Python 2.6.2 and would like to use it with some virtualenv.我編譯了 Python 2.6.2 並希望將它與一些 virtualenv 一起使用。 Is it enough to overwrite the binary file?覆蓋二進制文件就足夠了嗎? Or do I have to change something in respect to the libraries?或者我必須改變一些關於圖書館的東西嗎?


解決方案:

參考一: https://stackoom.com/question/6R7K
參考二: Use different Python version with virtualenv
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章