LoginSignup
5
7

More than 5 years have passed since last update.

別バージョンのPythonのconda環境をコマンド1行で作る

Last updated at Posted at 2017-02-07

最新のAnaconda 4.3.0にはPython 3.6またはPython 2.7が含まれているが、それ以外のバージョンの環境が必要な場合はAnacondaをインストールした後にconda環境を作成する必要がある。

インストールのコマンド

下のcondaコマンドを使うと、指定したバージョンのPythonでconda環境を作成してもろもろのパッケージも同時にインストールすることができる。

conda create -n Python35 anaconda python=3.5
  • Python35: conda環境名(任意の名前)
  • anaconda: たくさんのパッケージが含まれているメタパッケージ
  • python=3.5: =に続いてPythonのバージョンを指定

インストールされるパッケージ

コマンドラインからconda info anacondaを実行すると、インストールされるパッケージのリストを事前に確認できる。

5
7
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
5
7