Anaconda Python notes

Some notes on Anaconda python package manager:

  • Reference:
    https://medium.freecodecamp.org/why-you-need-python-environments-and-how-to-manage-them-with-conda-85f155f4353c
  • Conda is the main installer for the Anaconda packages
  • Conda can be used to create multiple environments with different python or other package versions.
  • The Anaconda packages are installed under /<some path>/Anaconda3/pkgs and other sub-directories
  • Inside a new Conda installation, the root environment is activated by default, so you can use it without activation. In other cases, if you want to use an environment (for instance manage packages, or run Python scripts inside it) you need to first activate it.
  • To create a new environment named, for instance mynewenv (you can name it what ever you like), that includes, let’s say, a Python version 3.4., run:
    • conda create –name mynewenv python=3.4
  • You can change an environment’s Python version by using the package management commands
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.