Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
Instalation
wget --no-check-certificate https://repo.continuum.io/archive/Anaconda2-2018.12-Linux-x86.sh
bash Anaconda2-2018.12-Linux-x86.sh
Configuration
You’ll receive the following output to review the license agreement by pressing ENTER until you reach the end.
Please answer 'yes' or 'no':'
>>> yes
Press ENTER to confirm the location
Anaconda2 will now be installed into this location:
/home/user/anaconda2
Do you wish the installer to initialize Anaconda2
in your /home/user/.bashrc ? [yes|no]
>>> yes
source /home/user/anaconda2/etc/profile.d/conda.sh
commands
Create Environment
conda create -n flaskenv python=3
environment location:
/home/user/anaconda2/envs/flaskenv
Delete Environment
conda remove -n flaskenv
To activate this environment, use
conda activate flaskenv
To deactivate an active environment, use
conda deactivate
To export:
conda env export > environment.yaml
Flask Environment useful packages
conda install --name flaskenv flask flask-sqlalchemy wtforms six pyyaml openpyxl pandas
conda install --name flaskenv numpy xlrd xlwt unicodecsv pep8 pycrypto beautifulsoup4
conda install -c conda-forge --name flaskenv flask-babelex flask-login flask-mail flask-wtf
conda install -c conda-forge --name flaskenv flask-security sqlalchemy-utils tablib suds-jurko pendulum
conda install -c conda-forge --name flaskenv arrow pypdf2
Django Environment useful packages
conda create -n django2 python=3
conda activate django2
conda install --name django2 django=2.1.4 cython psycopg2 six ipython python-dateutil reportlab
conda install --name django2 xlwt xlrd xlutils simplejson flake8 fabric requests pyyaml pandas
conda install --name django2 numpy
conda install --name django2 -c conda-forge django-extensions ipdb django-debug-toolbar
conda install --name django2 -c conda-forge ipython ipython_genutils ipdb
conda install --name django2 -c conda-forge django-mptt django-import-export
conda install --name django2 https://anaconda.org/conda-forge/dj-static/0.0.6/download/noarch/dj-static-0.0.6-py_2.tar.bz2
conda install --name django2 https://anaconda.org/auto/django-localflavor/1.0/download/linux-32/django-localflavor-1.0-py27_0.tar.bz2
conda install --name django2 https://anaconda.org/auto/django-role-permissions/0.3.1/download/linux-32/django-role-permissions-0.3.1-py27_0.tar.bz2
conda install --name django2 https://anaconda.org/travis/django-sslserver/0.11/download/linux-64/django-sslserver-0.11-py27_0.tar.bz2 Advertisement
Add Comment
Please, Sign In to add comment