Created by Mateusz Paprocki
Windows |
Mac OS X |
Linux |
|
| Python 2.7 | 64-bit / 32-bit | 64-bit | 64-bit / 32-bit |
| Python 3.4 | 64-bit / 32-bit | 64-bit | 64-bit / 32-bit |
Install on Linux and Mac OS X:
$ bash Miniconda-latest-Linux-x86_64.sh # or MacOSX instead of Linux
Install on Windows:
Miniconda-latest-Windows-x86_64.exe
We all simply don't want to waste time.
Windows |
Mac OS X |
Linux |
|
|
|
| pip | Python |
| Bundler | Ruby |
| Composer | PHP |
| npm | Node.js |
| CocoaPods | Objective-C |
| IVY | Java |
| Lein | Clojure |
| Cabal | Haskell |
distutils.errors.DistutilsError: Setup script exited with
error: command 'gcc' failed with exit status 1
$ git clone -b v1.10.1 git@github.com:numpy/numpy.git
$ cd numpy
$ python setup.py install
Running from numpy source directory.
Cythonizing sources
Processing numpy/random/mtrand/mtrand.pyx
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named Cython.Compiler.Main
Traceback (most recent call last):
File "/home/mateusz/repos/numpy/tools/cythonize.py", line 199, in <module>
main()
File "/home/mateusz/repos/numpy/tools/cythonize.py", line 195, in main
find_process_files(root_dir)
File "/home/mateusz/repos/numpy/tools/cythonize.py", line 187, in find_process_files
process(cur_dir, fromfile, tofile, function, hash_db)
File "/home/mateusz/repos/numpy/tools/cythonize.py", line 161, in process
processor_function(fromfile, tofile)
File "/home/mateusz/repos/numpy/tools/cythonize.py", line 81, in process_pyx
raise Exception('Cython failed')
Exception: Cython failed
Traceback (most recent call last):
File "setup.py", line 264, in <module>
setup_package()
File "setup.py", line 252, in setup_package
generate_cython()
File "setup.py", line 199, in generate_cython
raise RuntimeError("Running cythonize failed!")
RuntimeError: Running cythonize failed!
$ pip install h5py
Collecting h5py
Downloading h5py-2.5.0.tar.gz (684kB)
100% |████████████████████████████████| 688kB 167kB/s
Collecting numpy>=1.6.1 (from h5py)
Downloading numpy-1.10.1.tar.gz (4.0MB)
100% |████████████████████████████████| 4.1MB 78kB/s
Collecting Cython>=0.17 (from h5py)
Downloading Cython-0.23.4.tar.gz (1.6MB)
100% |████████████████████████████████| 1.6MB 139kB/s
Collecting six (from h5py)
Downloading six-1.10.0-py2.py3-none-any.whl
Building wheels for collected packages: h5py, numpy, Cython
(...)
In file included from /tmp/pip-build-rDj6mj/h5py/h5py/defs.c:279:0:
/tmp/pip-build-rDj6mj/h5py/h5py/api_compat.h:27:18: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
Package maintainers hate having packages that no one can install.
| Install a package | conda install sympy |
| List all installed packages | conda list |
| Search for packages | conda search numpy |
| Create a new environment | conda create -n py3 python=3 |
| Remove a package | conda remove sympy |
| Get help | conda install --help |
| Install to an environment | conda install -n py35 sympy |
| Update all packages | conda update --all |
| Export list of packages | conda list --export pkgs.txt |
| Install from an export | conda install --file pkgs.txt |
| See package history | conda list --revisions |
| Revert to a revision | conda install --revision 23 |
| Clean installation | conda clean -pt |
| Install anaconda | conda create -n my-an anaconda |
A tarball (.tar.bz2) with:
A conda package can be anything:
$ conda install sympy
$ conda install sympy
Fetching package metadata: ....
Solving package specifications: ...................
Package plan for installation in environment /home/mateusz/miniconda:
The following packages will be downloaded:
package | build
---------------------------|-----------------
fastcache-1.0.2 | py27_0 40 KB
sympy-0.7.6.1 | py27_0 6.2 MB
------------------------------------------------------------
Total: 6.2 MB
The following NEW packages will be INSTALLED:
fastcache: 1.0.2-py27_0
sympy: 0.7.6.1-py27_0
Proceed ([y]/n)? y
Fetching packages ...
fastcache-1.0. 100% |######################| Time: 0:00:00 164.82 kB/s
sympy-0.7.6.1- 100% |######################| Time: 0:00:20 314.02 kB/s
Extracting packages ...
[ COMPLETE ]|#####################| 100%
Linking packages ...
[ COMPLETE ]|#####################| 100%
$ conda create -n py35 python=3.5
| Unix | $ source activate py35 |
| Windows | $ activate py35 |
$ conda create -n py35 python=3.5
Fetching package metadata: ....
Solving package specifications: .
Package plan for installation in environment /home/mateusz/miniconda/envs/py35:
The following packages will be downloaded:
package | build
---------------------------|-----------------
xz-5.0.5 | 0 504 KB
python-3.5.0 | 0 16.6 MB
setuptools-18.4 | py35_0 345 KB
wheel-0.26.0 | py35_1 77 KB
pip-7.1.2 | py35_0 1.4 MB
------------------------------------------------------------
Total: 19.0 MB
The following NEW packages will be INSTALLED:
openssl: 1.0.1k-1
pip: 7.1.2-py35_0
python: 3.5.0-0
readline: 6.2-2
setuptools: 18.4-py35_0
sqlite: 3.8.4.1-1
tk: 8.5.18-0
wheel: 0.26.0-py35_1
xz: 5.0.5-0
zlib: 1.2.8-0
Proceed ([y]/n)? y
Fetching packages ...
xz-5.0.5-0.tar 100% |#######################| Time: 0:00:01 488.65 kB/s
python-3.5.0-0 100% |#######################| Time: 0:00:19 889.30 kB/s
setuptools-18. 100% |#######################| Time: 0:00:00 546.22 kB/s
wheel-0.26.0-p 100% |#######################| Time: 0:00:00 200.20 kB/s
pip-7.1.2-py35 100% |#######################| Time: 0:00:11 127.70 kB/s
Extracting packages ...
[ COMPLETE ]|######################| 100%
Linking packages ...
[ COMPLETE ]|######################| 100%
#
# To activate this environment, use:
# $ source activate py35
#
# To deactivate this environment, use:
# $ source deactivate
#
$ source activate py35
discarding /home/mateusz/miniconda/bin from PATH
prepending /home/mateusz/miniconda/envs/py35/bin to PATH
$ python --version
Python 3.5.0 :: Continuum Analytics, Inc.
$ source deactivate
discarding /home/mateusz/miniconda/envs/py35/bin from PATH
$ python --version
Python 2.7.10 :: Continuum Analytics, Inc.
$ conda install -c https://conda.anaconda.org/travis simpy
$ conda install -c travis simpy
$ conda config --add channels travis
$ conda info
$ conda build path/to/recipe
$ python
Python 2.7.10 |Continuum Analytics, Inc.| (default, Sep 15 2015, 14:50:01)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>>
conda install numpy=1.8.1
$ conda install ipython
Fetching package metadata: ....
Solving package specifications: ..................
Package plan for installation in environment /home/mateusz/miniconda:
The following packages will be downloaded:
package | build
---------------------------|-----------------
decorator-4.0.4 | py27_0 11 KB
ipython_genutils-0.1.0 | py27_0 32 KB
path.py-8.1.2 | py27_0 45 KB
pexpect-3.3 | py27_0 60 KB
simplegeneric-0.8.1 | py27_0 6 KB
conda-3.18.3 | py27_0 175 KB
pickleshare-0.5 | py27_0 8 KB
traitlets-4.0.0 | py27_0 88 KB
ipython-4.0.0 | py27_0 915 KB
------------------------------------------------------------
Total: 1.3 MB
The following NEW packages will be INSTALLED:
decorator: 4.0.4-py27_0
ipython: 4.0.0-py27_0
ipython_genutils: 0.1.0-py27_0
path.py: 8.1.2-py27_0
pexpect: 3.3-py27_0
pickleshare: 0.5-py27_0
simplegeneric: 0.8.1-py27_0
traitlets: 4.0.0-py27_0
The following packages will be UPDATED:
conda: 3.18.2-py27_0 --> 3.18.3-py27_0
Proceed ([y]/n)?
$ conda create -n ipy python
(...)
$ conda list -n ipy | grep -v '^#' | wc -l
9
$ conda install -n ipy ipython
(...)
$ conda list -n ipy | grep -v '^#' | wc -l
18
$ conda remove -n ipy ipython
Fetching package metadata: ....
Package plan for package removal in environment /home/mateusz/miniconda/envs/ipy:
The following packages will be REMOVED:
ipython: 4.0.0-py27_0
Proceed ([y]/n)? y
Unlinking packages ...
[ COMPLETE ]|####################################| 100%
$ conda list -n ipy | grep -v '^#' | wc -l
17