22.02.2024 Views

Daniel Voigt Godoy - Deep Learning with PyTorch Step-by-Step A Beginner’s Guide-leanpub

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

pytorchbook (or anything else you find easy to remember). Then, you need to open

a terminal (in Ubuntu) or Anaconda Prompt (in Windows or macOS) and type the

following command:

$ conda create -n pytorchbook anaconda

The command above creates a Conda environment named pytorchbook and

includes all Anaconda packages in it (time to get a coffee, it will take a while…). If

you want to learn more about creating and using Conda environments, please

check Anaconda’s "Managing Environments" [21] user guide.

Did it finish creating the environment? Good! It is time to activate it, meaning,

making that Python installation the one to be used now. In the same terminal (or

Anaconda prompt), just type:

$ conda activate pytorchbook

Your prompt should look like this (if you’re using Linux):

(pytorchbook)$

or like this (if you’re using Windows):

(pytorchbook)C:\>

Done! You are using a brand new Conda environment now. You’ll need to activate

it every time you open a new terminal, or, if you’re a Windows or macOS user, you

can open the corresponding Anaconda prompt (it will show up as Anaconda

Prompt (pytorchbook), in our case), which will have it activated from the start.

IMPORTANT: From now on, I am assuming you’ll activate the

pytorchbook environment every time you open a terminal or

Anaconda prompt. Further installation steps must be executed

inside the environment.

12 | Setup Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!