Open cmd as administrator and paste the following command
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
#Paste ↓ when ↑ processing is completed
choco install -y --execution-timeout=1000000 anaconda3
that's all!
The contents of the command are explained below.
The seeds are "chocolatey" and "anaconda". If you're already using chocolatey, you don't need the command on the first line. ** Since June 2016, you can install anaconda with chocolatey **, which is the reason why I wrote this article.
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
Installation of package manager "chocolatey"
After installing it, on a command prompt opened with administrator privileges
chocolatey install <package name>
You can easily install the software with just this.
There are also many famous software such as Google chrome and iTunes.
Official → chocolatey
More details → Notes on building an environment using Chocolatey
choco install -y --execution-timeout=1000000 anaconda3
Install python distribution "anaconda" using chocolatey
What is anaconda ...
, but you can also drop 2.x by typing ʻanaconda2
).conda install <package name 1> <package name 2> ...
. ← Use conda
in the update sectionconda search -t <package name>
to see if the package you want is missing. A kind person may have given it to me.Official → anaconda3
Chocolatey Package Collection: Anaconda Page
More details → Python environment construction for those who aim to be a data scientist 2016
-y
The -y
option is synonymous with answering'yes' to all the questions chocolatey asks.
When it is troublesome to type y
one by one, it is easier to specify it first so that you do not have to stick to the screen.
If you do not specify the --execution-timeout
option, you will get this error after downloading for about 30 minutes.
--timeout, --execution-timeout=VALUE
CommandExecutionTimeout (in seconds) - The time to allow a command to
finish before timing out. Overrides the default execution timeout in the
configuration of 2700 seconds.
The installer is too large and the default chocolatey time times out.
I've spent a lot of wasted time, so let's specify it in advance.
By the way, please note that it takes 1-2 hours from download to installation.
choco upgrade all -y
When updating a chocolatey package, choco upgrade <package name>
Specifying
By the way, the choco update
command is still available, but it seems to be abolished. (Warning comes out)
conda update --prefix C:\tools\Anaconda3 --all
When updating, conda update <package name>
When installed by chocolatey, it is not created in the home directory (under C: \ Users \ <UserName>
or under C: \
) like when installing with anaconda by default.
Therefore, specify the location of anaconda with --prefix <path>
.
Recommended Posts