前付けインストール
Installing Miniconda Minicondaのインストール
Your simplest option is to install Miniconda. Note that the Python 3.x version is required. You can skip the following steps if your machine already has conda installed.
英語のヒント
最も簡単な方法は、Minicondaをインストールすることである。Python 3.xの版が必要なことに注意してほしい。マシンにすでにcondaが入っているなら、以下の手順は飛ばしてよい。
Visit the Miniconda website and determine the appropriate version for your system based on your Python 3.x version and machine architecture. Suppose that your Python version is 3.9 (our tested version). If you are using macOS, you would download the bash script whose name contains the strings “MacOSX”, navigate to the download location, and execute the installation as follows (taking Intel Macs as an example):
英語のヒント
MinicondaのWebサイトに行き、自分のPython 3.xの版とマシンのアーキテクチャにもとづいて、システムに合った版を決めよう。Pythonの版が3.9(私たちがテストした版)だとしよう。macOSを使っているなら、名前に「MacOSX」という文字列を含むbashスクリプトをダウンロードし、ダウンロードした場所に移動して、次のようにインストールを実行する(Intel Macを例にとる)。
# The file name is subject to changes
sh Miniconda3-py39_4.12.0-MacOSX-x86_64.sh -bA Linux user would download the file whose name contains the strings “Linux” and execute the following at the download location:
英語のヒント
Linuxの利用者は、名前に「Linux」という文字列を含むファイルをダウンロードし、ダウンロードした場所で次を実行する。
# The file name is subject to changes
sh Miniconda3-py39_4.12.0-Linux-x86_64.sh -bA Windows user would download and install Miniconda by following its online instructions. On Windows, you may search for
cmd to open the Command Prompt (command-line interpreter) for running commands.英語のヒント
Windowsの利用者は、オンラインの説明に従ってMinicondaをダウンロードし、インストールする。Windowsでは、
cmdを検索してコマンドプロンプト(コマンドラインのインタプリタ)を開き、コマンドを実行できる。Next, initialize the shell so we can run
conda directly.英語のヒント
次に、
condaを直接実行できるようにシェルを初期化する。~/miniconda3/bin/conda initThen close and reopen your current shell. You should be able to create a new environment as follows:
英語のヒント
それから、今のシェルを閉じて開き直す。次のようにして新しい環境を作れるはずである。
conda create --name d2l python=3.9 -yNow we can activate the
d2l environment:英語のヒント
これで
d2l環境を有効にできる。conda activate d2l