Conda
Conda
Conda is a package manager application that quickly installs, runs, and updates packages and their dependencies. Intro to Conda
Anaconda is a free, easy-to-install package manager, environment manager, Python distribution, and collection of over 720 open source packages with free community support. Hundreds more open source packages and their dependencies can be installed with a simple “conda install [packagename]”. It’s platform-agnostic, can be used on Windows, OS X and Linux. New to Anaconda Start Here
root@edison:~# opkg install python-pip
root@edison:~# wget http://09c8d0b2229f813c1b93-c95ac804525aac4b6dba79b00b39d1d3.r79.cf1.rackcdn.com/Anaconda-2.1.0-Linux-x86.sh
root@edison:~# opkg install http://repo.opkg.net/edison/repo/core2-32/bash_4.3-r0_core2-32.ipk
root@edison:~# opkg install http://repo.opkg.net/edison/repo/core2-32/tar_1.27.1-r0_core2-32.ipk
root@edison:~# bash ./Anaconda-2.1.0-Linux-x86.sh
tar: lib/python2.7/site-packages/sklearn/utils/weight_vector.so: Cannot write: No space left on device
tar: Exiting with failure status due to previous errors
Miniconda
These Miniconda installers contain the conda package manager and Python. Once Miniconda is installed, you can use the conda command to install any other packages and create environments, etc.
[The most important stuff to know about Intel Edison]
(http://tiredhacker.blogspot.mx/2015/01/the-most-important-stuff-to-know-about.html)
root@edison:~# wget http://ftp.gnu.org/gnu/tar/tar-latest.tar.gz
--2016-06-25 12:58:20-- http://ftp.gnu.org/gnu/tar/tar-latest.tar.gz
Resolving ftp.gnu.org... 208.118.235.20, 2001:4830:134:3::b
Connecting to ftp.gnu.org|208.118.235.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3962257 (3.8M) [application/x-gzip]
Saving to: 'tar-latest.tar.gz'
100%[======================================>] 3,962,257 260KB/s in 13s
2016-06-25 12:58:33 (308 KB/s) - 'tar-latest.tar.gz' saved [3962257/3962257]
root@edison:~$ tar xvf tar-latest.tar.gz
root@edison:~$ cd tar-1.29/
root@edison:~/tar-1.29$ ls
ABOUT-NLS ChangeLog.1 Makefile.in TODO config.h.in gnu rmt
AUTHORS INSTALL NEWS acinclude.m4 configure lib scripts
COPYING Make.rules README aclocal.m4 configure.ac m4 src
ChangeLog Makefile.am THANKS build-aux doc po tests
root@edison:~/tar-1.29$ sh configure
root@edison:~/tar-1.29$ make
root@edison:~/tar-1.29# make install
root@edison:~# wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86.sh
--2016-03-21 06:23:29-- https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86.sh
Resolving repo.continuum.io... 23.21.234.195, 54.197.250.243, 23.23.254.16, ...
Connecting to repo.continuum.io|23.21.234.195|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 29686993 (28M) [application/octet-stream]
Saving to: 'Miniconda3-latest-Linux-x86.sh'
100%[============================================================================================>] 29,686,993 1.20MB/s in 25s
2016-03-21 06:23:55 (1.13 MB/s) - 'Miniconda3-latest-Linux-x86.sh' saved [29686993/29686993]
root@edison:~# bash Miniconda3-latest-Linux-x86.sh
...
[/home/root/miniconda3] >>>
PREFIX=/home/root/miniconda3
installing: _cache-0.0-py35_x0 ...
...
You may wish to edit your .bashrc or prepend the Miniconda3 install location:
$ export PATH=/home/root/miniconda3/bin:$PATH
Thank you for installing Miniconda3!
Share your notebooks and packages on Anaconda Cloud!
Sign up for free: https://anaconda.org
root@edison:~# export PATH=/home/root/miniconda3/bin:$PATH
root@edison:~# conda --version
conda 4.0.5
root@edison:~# conda update conda
Fetching package metadata: ....
.Solving package specifications: .........
Package plan for installation in environment /home/root/miniconda3:
The following packages will be downloaded:
package | build
---------------------------|-----------------
conda-env-2.5.1 | py35_0 27 KB
ruamel_yaml-0.11.7 | py35_0 379 KB
conda-4.1.3 | py35_0 201 KB
------------------------------------------------------------
Total: 607 KB
The following NEW packages will be INSTALLED:
ruamel_yaml: 0.11.7-py35_0
The following packages will be UPDATED:
conda: 4.0.5-py35_0 --> 4.1.3-py35_0
conda-env: 2.4.5-py35_0 --> 2.5.1-py35_0
Proceed ([y]/n)? y
Fetching packages ...
conda-env-2.5. 100% |################################| Time: 0:00:00 292.28 kB/s
ruamel_yaml-0. 100% |################################| Time: 0:00:01 253.50 kB/s
conda-4.1.3-py 100% |################################| Time: 0:00:01 126.19 kB/s
Extracting packages ...
[ COMPLETE ]|###################################################| 100%
Unlinking packages ...
[ COMPLETE ]|###################################################| 100%
Linking packages ...
[ COMPLETE ]|###################################################| 100%
root@edison:~# conda search --full-name python
python 1.0.1 0 defaults
...
* 3.5.1 0 defaults
root@edison:~# conda create --name snakes python=3
...
#
# To activate this environment, use:
# $ source activate snakes
#
# To deactivate this environment, use:
# $ source deactivate
#
root@edison:~# conda info --envs
# conda environments:
#
snakes /home/root/miniconda3/envs/snakes
root * /home/root/miniconda3
root@edison:~#
Last updated