Python Forum
Thread Rating:
  • 3 Vote(s) - 2.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anaconda and other ways to run Python
This will mainly be about Anaconda and some other ways to run Python.
When i mention OS Python is from and tutorial for Windows part-1, part-2 and Linux part-1.

Anaconda(1,000 packages+), Miniconda(without packages)
Anaconda,Miniconda is stand alone Python distribution for Windows,Linux and Mac OS X.
It do not mess with OS Python,so no problem to have both installed.
Conda is there package manager,like pip is for OS Python.

Installation Windows
Under install can choose path where to install i have it on G:\Anaconda3,
a drive i have good space on,full Anaconda is about 2GB and 300mb for Miniconda.
Under install get question about add Anaconda to Path(work anywhere from cmd),if Anaconda is only Python on OS mark on.
If want OS Python to be in Path mark of.

The navigator:
[Image: ieRhfa.jpg]
[Image: RJrtS9.jpg]

One the strong point is that get a lot ready to use like Jupyter NoteBook and Spyder Editor.

Conda and pip
 Conda and pip is placed in G:\Anaconda3\Scripts if use from cmd/cmder or use Anaconda Prompt.
Version and Python:
λ conda -V
conda 4.3.30

λ pip -V
pip 9.0.1 from G:\Anaconda3\lib\site-packages (python 3.6)

# Python is in root folder
λ python
Python 3.6.1 |Anaconda custom (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

Update example:
Install example using Miniconda:
Conda is a strong installer and find most packages,
pip has also got a lot better with Python 3.6,but still there are sometime has to go to Gohlke(to get wheel eg scipy for OS Python).
Always use conda install <package> first,if not find package use pip install <package>.

Virtual environment with Anaconda
Create a virtual environment with specific packages of choice scipy,pandas,requests.
conda create -n myenv scipy pandas requests
In that environment can use both conda and pip to install into it.
Environment can also be shared with with someone else bye exported a .yml file.
conda env export > environment.yml
Example of .yml file:
name: myenv
  - python=3.6 #or eg 2.7
  - scipy
  - pandas
  - requests
So can make stand alone packages for someone else to use.

Conda Forge
Will cross-platform testing(Windows,Linux and OSX) before they distribute the package.
This way a package will work the same on all OS and environment.
Using conda-forge:

For Linux will be using pyenv to install Anaconda/Miniconda.
pyenv make it easy to install and change between versions tutorial.

Look at version available: 
mint@mint ~ $ pyenv install --list
Use Miniconda in shell session:
mint@mint ~ $ pyenv shell miniconda3-4.3.27
(miniconda3-4.3.27) mint@mint ~ $ conda install jupyter
(miniconda3-4.3.27) mint@mint ~ $ jupyter notebook

Other distribution ways and to run Python
To be continued...

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020