Tuesday, August 15, 2017

Ubuntu Conda install, Opencv setup, and Tensorflow setup

# This is not for a GPU setup - find the other post below that is for the GPU setup

# Conda installation instructions

https://conda.io/docs/install/full.html

# Conda download location

https://www.continuum.io/downloads

# Install Conda

bash Anaconda3-4.4.0-Linux-x86_64.sh

# Conda cheatsheet

https://conda.io/docs/_downloads/conda-cheatsheet.pdf

# Test conda

conda --version

conda update conda

conda env --help

conda create --name opencv_3.5

conda_env

conda env list

conda info --envs

conda list

# Create some environments

# now add the following to the environment.yml file

name: opencv_3.5
dependencies:
  - numpy
  - pandas
  - cycler
  - Django
  - functools32
  - matplotlib
  - numpy
  - olefile
  - PIL
  - pyparsing
  - python-dateutil
  - pytz
  - scipy
  - six
  - subprocess32
  - matplotlib

conda env create -f environment.yml

# Install Opencv 3

conda install -c menpo opencv3


# Make a new env for Tensorflow

conda create -n tensorflow python=3.5 anaconda # install anaconda3 default packages
source activate tensorflow # switch into it
conda install -c conda-forge tensorflow # install tensorflow
 
conda install numpy
conda install keras 
 
# add some misc. packages
 
conda install -c menpo imageio
 
 
 
 # Activate an environment 

https://conda.io/docs/using/envs.html

source activate opencv_3.5
 
# Deactivate the env 
 
source deactivate 
 
# Python downgrade/upgrade
 
https://chris35wills.github.io/conda_python_version/
 
 
 
 
 
 

No comments:

Post a Comment