2013年1月16日 星期三

[Python] 在Debain 6上安裝python 2.7 + vritualenv

晚上7:43
剛好看到有人在gist上放了 安裝python2.7的shell script 其實安裝起來還蠻方便的..(笑) Shell script code: https://gist.github.com/1069219 安裝完畢後,執行python就可以看到版本是2.7.2了 不過有人會想問,那要用回舊的版本勒? 其實可以修改 ~/.profile 這檔案,檔案內容大致上如下: if [ "$BASH" ]; then if [ -f ~/.bashrc ]; then . ~/.bashrc fi fi mesg n #if [ -d "$HOME/env/bin" ] ; then # PATH="$HOME/env/bin:$PATH" #fi 把 PATH="$HOME/env/bin:$PATH"註解掉後,就會套用舊的環境設定。 PS: 恩...原本python2.6裝的django是1.4版的,剛好順便升級到py27 + django-1.5...
1234567Next >LastPage 1 of 7