Bash
mkdir ~/local
mkdir ~/local/src
cd ~/local/src
wget http://python.org/ftp/python/3.3.1/Python-3.3.2.tar.bz2
tar -xjf Python-3.3.2.tar.bz2
cd Python-3.3.2
./configure --prefix=$HOME/local/python/
make && make install
Bash
cd
vi ~/.cshrc
vi
#Add the following
set path = ($HOME/local/python/bin)
setenv PYTHON $HOME/local/python/lib
By adding it, just enter the command "python3" and the interpreter of python3 will start.
http://www.mihr.net/comp/sakura.html
Recommended Posts