anaconda

De Wikicima
(Diferencias entre revisiones)
Saltar a: navegación, buscar
(Rellenando conda)
 
(Final)
Línea 30: Línea 30:
 
wheel 0.30.0 py_1 conda-forge
 
wheel 0.30.0 py_1 conda-forge
 
zlib 1.2.8 3 conda-forge
 
zlib 1.2.8 3 conda-forge
</pre>
+
</pre>
\item To install a pakage (assuming pip is already in the environtment!):
+
# To install a pakage (assuming pip is already in the environtment!):
\CodeColortxt{\$ pip install numpy}
+
<pre>
  +
$ pip install numpy
  +
</pre>

Revisión de 16:12 1 nov 2017

CIMA's ciomputational resources have conda installed. This facilitates the individualized management of, for example, python

cration of an environtment

A python environtment is useful to have set-up an specific set of packages to be used for python. Folowing instructions from conda [ https://conda.io/docs/user-guide/tasks/manage-environmentshtml#creating-an-environment-with-commands EnvironmentCreation]

  1. Creation of the environemnt called ‘lluis’ with ptyhon 2.7 version of codes
conda create –name lluis lluis python=2.7
  1. To activate the environment
$ source activate lluis
(lluis) $
  1. Knowing packages of the environtment:
$ conda list -n lluis
# packages in environment at /home/lluis.fita/datosskogul/minconda3/envs/lluis:
#
ca-certificates           2017.7.27.1                   0    conda-forge
certifi                   2017.7.27.1              py27_0    conda-forge
ncurses                   5.9                          10    conda-forge
openssl                   1.0.2l                        0    conda-forge
pip                       9.0.1                    py27_0    conda-forge
python                    2.7.14                        0    conda-forge
readline                  6.2                           0    conda-forge
setuptools                36.6.0                   py27_1    conda-forge
sqlite                    3.13.0                        1    conda-forge
tk                        8.5.19                        2    conda-forge
wheel                     0.30.0                     py_1    conda-forge
zlib                      1.2.8                         3    conda-forge
  1. To install a pakage (assuming pip is already in the environtment!):
$ pip install numpy
Herramientas personales