- Create a new environment¶ ¶ conda create -name package=version conda create -name devsummitprecon python=3.6 conda create -name datasciproj scipy pandas Check if new folder was created in C: anaconda3 envs.
- CONDA CHEAT SHEET Command line package and environment manager Learn to use conda in 30 minutes at bit.ly/tryconda TIP: Anaconda Navigator is a graphical interface to use conda.
Here we will explain how to install pytorch with conda.
To get the Conda version of the currently active environment, run this command: conda -version. Most popular games for mac. Example result: conda 4.3.33. To get a detailed list of information about the environment, for instance: Conda version, platform (operating system and bit count — 32- or 64-bit), Python version, environment directories, run this command: conda. Cheat sheet¶ Download the Anaconda Cheat Sheet for a quick guide to using Anaconda. « Moving Anaconda from one directory to another Frequently asked questions ».
Downloading
You can choose right version for your system fromhttps://docs.conda.io/en/latest/miniconda.html.
Windows users should follow the tutorial fromhttps://docs.conda.io/projects/conda/en/latest/user-guide/install/windows.html.
Linux users can run the following script:
In terminal execute the following line:
Mac users can also run the same script changing
Miniconda3-latest-Linux-x86_64.sh
intoMiniconda3-latest-MacOSX-x86_64.sh
.Adding conda to PATH (Mac and Linux)
Then add
conda
to $PATH
by runningIf you do not want to run it each time you start the system you can add this line to
~/.bashrc
(or .zshrc
). For example by callingConda Create Env Cheat Sheet
(Mac
.zshrc
) and adding these lines at the end of the file. Then runUpdate conda (all platforms)
Creating and activating environment
You can deactivate it with
source deactive
. More info on https://conda.io/docs/user-guide/tasks/manage-environments.htmlInstalling pytorch (with numpy, jupyter and matplotlib)
Install other useful packages
Conda Environment Cheat Sheet Printable
Run jupyter and test it
After activating environment run
When the web page opens, click on button “New”, choose “Python 3”.
Then copy the following into the cell and press Control+Enter. Change
imgs/shelf.JPG
to any image of your coice.Updated: 2020-02-02