2016年12月10日土曜日

JupyterでPythonの環境を切り替える

# JupyterでPythonの環境を切り替える AdventCalendar2016 10日目 読み方は「ブリオングロード」のbriongloidです JupyterでPythonの環境を切り替えるためにKernelを追加する pyenvでPythonのバージョン管理してるならばglobalやlocalでバージョンを設定しとく Python2系、Python3系を入れるなら以下を実行する ``` ipython kernel install --user ``` 以下のコマンドでも同じことができるが(おそらくJupyterの)バージョン4.0以降で非推奨になったようだ ``` jupyter kernelspec install-self --user ``` 環境を削除 ``` jupyter kernelspec remove python2 ``` virtualenv、pyenv-virtualenvの環境を追加 ``` python -m ipykernel install --user --name py2.7.12-free --display-name "Free (Py2.7.12)" ```

2 件のコメント:

  1. Great Platform. Are you also searching for nursing essay writing help? we are the best solution for you. We are best known for offering the best nursing essay writing services

    返信削除
  2. Your blogs are great.Are you also searching for nursing research papers examples Check on our site. whatsapp us:+1-(951)-468-9855

    返信削除