【pip】さくらサーバーにPythonをインストールし直して最新のSSL通信を指定した記録

2019-04-03 08:03:46 10

参考:http://bty.sakura.ne.jp/wp/archives/1470

rm -rf ~/local/python/*

rm -rf ~/work/py3/*


mkdir -p ~/work/py3
cd ~/work/py3
wget --no-check-certificate https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
tar zxvf ./Python-3.6.5.tgz
cd ./Python-3.6.5
./configure CPPFLAGS="-I/usr/local/ssl/include" LDFLAGS="-L/usr/local/ssl/lib" --prefix=$HOME/local/python
make
make install

rehash




emacs ~/.cshrc
-----
set path = ($path $HOME/local/python/bin)
setenv PYTHON $HOME/local/python/lib
-----

source ~/.cshrc
rehash


emacsの終了方法は、Ctr+xにCtr+c

関連記事