3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOSにPython環境を設定

Posted at

Spyderを使えるようになるまでセットアップ

  1. Gnome - http://www.server-world.info/query?os=CentOS_6&p=x
  2. VNC - https://www.ipentec.com/document/document.aspx?page=linux-centos-60-vncserver-tigervncserver-install - `~/vnc/xstartup` の末尾を次のように編集
    #twm &
    exec gnome-session
    
    • 起動
    vncserver -geometry 1920x1080
    
    • ディスプレイ番号を覚えておいて、接続時には 0.0.0.0:2 などと指定する。
    • Windows用のRealVNCクライアントで、フルスクリーンから抜けるには F8
  3. Git - ソースから最新版をビルド&インストール - http://www.task-notes.com/entry/20150622/1434942000
  4. pyenv - pyenvをインストール
    sudo ln -s /usr/local/bin/git /usr/bin`
    sudo git clone https://github.com/yyuu/pyenv.git /usr/local/pyenv
    
    • 全ユーザが使えるように環境設定。/etc/bashrc/etc/zsh/zshrc に以下を追記。
    export PYENV_ROOT=/usr/local/pyenv
    export PATH="$PYENV_ROOT/bin:$PATH"
    eval "$(pyenv init -)"
    sudopy () {
      sudo bash -c "export PYENV_ROOT=/usr/local/pyenv; export PATH=\$PYENV_ROOT/shims:\$PYENV_ROOT/bin:\$PATH; $*"
    }
    
    • 適当なバージョンをインストール
    sudopy pyenv install anaconda2-4.0.0
    
3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?