Python Tutorial: Anaconda - Installation and Using Conda

Corey Schafer · 1.2M views · 2016 · 11:25

Open on YouTube

Python, Ruby & scripting languagesTesting, debugging & developer toolstutorial

Why Stack Overflow recommends it

Stack Overflow users link it when someone has a broken Python or R install, package conflicts or version problems and needs a quick, clear introduction to conda environments.

Recommended by 5 people across 10 different months, 2016 to 2022.

What it is

A Corey Schafer Python tutorial on installing Anaconda and using conda, the package, dependency and environment manager from Continuum Analytics. It walks through installation and then shows how to create, activate and manage separate environments from the terminal.

What people said

Recommends pm1359 · 2016-10 · Stack Overflow · on “Not launching Ipython in my browser on windows 8”

@Thomas K sorry for answering late, the problem was with python installation in windows, I had to uninstall everything and install anaconda for windows, I have found good explanation in here [this video]

Recommends NewNewton · 2018-02 · Stack Overflow · on “Using pip for python 2.7, After having installed Anaconda with 3.6 (mac)”

The great thing about anaconda is the easy way of managing multiple different environments. And that is what you are looking for. All you have to do is creat an environment with python version 2.7. Right now you only have the default(root) environment. A really good video on how to actually use anaconda is here [this video] (11mins and only the last 5-6 mins are what you're actually looking for) Basically you type the following in your terminal: to see all the environments you have right now: conda env list to create a new env called py27env: conda create --name py27env python=2.7 (+ other modules you want...) to activate the environment: source activate py27env to see which python version you ar

Recommends Gwang-Jin Kim · 2018-05 · Stack Overflow · on “On CentOS Linux 7.4, cannot install the R package "httpuv"”

The error says that there is a library error in libuv.la. The cc and CCLD commands show that this is a compilation error - very likely from gcc thrown when trying to compile libuv.la. In ubuntu linux, I would look in such cases: $ apt search httpuv # which gives: # r-cran-httpuv R packages with mostly need other system dependencies (libraries outside of R etc) mostly have a package in the apt repository. Then you do simply: $ sudo apt install r-cran-httpuv And then every dependency problems are resolved (though it might be that R asks you to update/upgrade your package after the installation - which sometimes works but sometimes not). I was looking if CentOS can use apt : [LINK] Another poss

Recommends Gwang-Jin Kim · 2018-05 · Stack Overflow · on “Trouble installing rcpp package on R server- Suse 12 SP3 - R-3.3.2”

In ubuntu, in such situation, I would search for apt search rcpp # search in central repository for \ # packages for R packages In this case, this leads to 'r-cran-rcpp' package which I then install with sudo apt install r-cran-rcpp (such packages from 'r-cran-' help, because they install for you the further dependencies in the system - which are often dependencies outside of R - automatically for you. E.g. some packages require java or some other system libraries.). Similarly, you have to search in rpm or yast2 repos for rcpp packages. I found googling [LINK] or [LINK] Or: if you are using conda: conda install -c r r-rcpp would definitely help ... If you don't know conda: This tutorial is s

Recommends Gwang-Jin Kim · 2018-10 · Stack Overflow · on “How to install a new R package on old, incompatible version of R”

It is not the exact answer to your question. But did you hear about conda package manager (which is universal to programming languages and many other system-relevant programs)? You could resolve your headache - without admin rights - by locally installing higher versions of R into a virtual conda environment - and have it and run it in a virtual environment. To learn to use conda use Corey Schafer's tutorials are very good - and teaches you conda within merely 12 min ... [this video] . Anaconda is just a variant, but I use miniconda - the produre and the command is the same. # install miniconda on linux 64 bit on python 3.7 background wget [LINK] bash Miniconda3-latest-Linux-x86_64.sh # linux 32

Recommends Darius · 2019-02 · Stack Overflow · on “Multiple Locations for Python Packages”

There are some good explanation videos on YouTube, e.g. Python Tutorial: Anaconda - Installation and Using Conda [this video] .

Recommends Gwang-Jin Kim · 2019-10 · Stack Overflow · on “ModuleNotFoundError: No module named 'matplotlib' after installing module”

If you don't have administration rights on that machine, you can use conda to locally install stuff. Corey Schafer conda tutorial is very good [this video]

Recommends Gwang-Jin Kim · 2020-02 · Stack Overflow · on “Cannot install any package in R”

Install conda for windows # if you have 64 bit computer: [LINK] # if 32 bit computer: [LINK] Run the exe. Create a new environment for your R: # create new virtual environment for R with name 'newR' conda create --name newR # enter this created environment conda activate newR # or: source activate newR # install there now newest R conda install -c conda-forge r-base # you can also install rstudio conda install -c conda-forge rstudio # and also more difficult to install R packages # search for them by googling: 'conda install <packagename>' # mostly in anaconda site you see command for install. # next time you want to start R do: # enter environment conda activate newR # if that doesn't work:

Recommends Gwang-Jin Kim · 2020-09 · Stack Overflow · on “ggvegan for the latest version of R”

`conda` is a universal package manager. It can handle all languages. However, community must prepare the packages in a special way. Short but very good tutorial is here: [this video]

Recommends Gwang-Jin Kim · 2022-05 · Stack Overflow · on “I am unable to install rails and have tried installing ruby version 3.7 multiple times”

How about using conda? $ brew install --cask miniconda $ conda init bash # from then on your bash shell will be `(base) ... $` # in `base` you are in normal global environment # indicating that you are in base conda environment $ conda activate --name ruby # create environment for ruby $ conda activate ruby # enter the 'ruby' environment $ conda install -c conda-forge ruby=3.7 # install ruby 3.7 into this environment 'ruby' # you can any time get out of 'ruby' environment by: $ conda deactivate # you can 'see' your ruby 3.7 only if you enter the 'ruby' environment by $ conda activate ruby # as soon as you deactivate this environment, you will see your normal global ruby, when calling ruby. L