WSGI with Anaconda - jordy33/turbogears_tutorial GitHub Wiki
Create a user
Create a test user
sudo adduser test
sudo usermod -aG sudo wsgi
Log using user wsgi
Anconda Install
cd /tmp
curl -O https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
bash Anaconda3-5.0.1-Linux-x86_64.sh
Once it’s complete you’ll receive the following output:
Output
...
installation finished.
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /home/sammy/.bashrc ? [yes|no]
[no] >>>
Type yes so that you can use the conda command. You’ll next see the following output:
Output
Appending source /home/wsgi/anaconda3/bin/activate to /home/wsgi/.bashrc
A backup will be made to: /home/wsgi/.bashrc-anaconda3.bak
For this change to become active, you have to open a new terminal.
Thank you for installing Anaconda3!
wsgi@ip-172-31-25-76:/tmp$
Re log with user wsgi
wsgi@ip-172-31-25-76:~$ ls
anaconda3
List packages:
conda list
Setting up environment
conda search "^python$"
Creating environment
conda create --name my_env python=3.5.2
to Activate
#
# To activate this environment, use:
# > source activate my_env
#
# To deactivate an active environment, use:
# > source deactivate
#
Result
(my_env) wsgi@ip-172-31-25-76:~$ python --version
Python 3.5.2 :: Continuum Analytics, Inc.