Simple steps for Ubuntu development environment
- Installing python3 with anaconda
- Find
with ctrl+F on the web pageAnaconda3-4.2.0-Linux-x86_64.sh
- Click and wait for download
-
and thencd Downloads/
bash Anaconda3-4.2.0-Linux-x86_64\(1\).sh
- After running the command there are several options to choose. Agree all and follow the instruction by Anaconda. Finally the folder will be on ~/anaconda3
- To address the problem of
if necessary(Note that anaconda will do this automatically for you. Therefore you can see conda version from another terminal). edit theconda command not found
file by~/.bashrc
. Putsudo gedit ~/.bashrc
in the end of the file and lastly activate it withexport PATH="~/anaconda3/bin:$PATH
source ~/.bashrc
- Enter
to see the conda versionconda -V
- Find
- Install Java
- Download jdk from Oracle, make sure that you are picking up the right version to fit the Ubuntu platform and select the file end with .tar.gz
- Make a directory for Java under /usr/ with
sudo mkdir /usr/lib/java
- Extract the jdk from /Downloads with
. Rename the file and move it to the /usr/lib/java withtar -zxvf jdk-8u171-linux-x64.tar.gz
sudo mv jdk /usr/lib/java/
- Configure path for Java by editing ~/.bashrc: Enter
and then putsudo gedit ~/.bashrc
export JAVA_HOME=/usr/lib/java/jdk export JRE_HOME=$JAVA_HOME/jre export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
-
activate Javasource ~/.bashrc
-
to check Java versionjava -version
- Install Python3.5 with conda
- Create a virtual environment call dev with
conda create -n dev python=3.5
- Create a virtual environment call dev with
- *Install tensorflow
-
source activate dev
-
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.6.0-cp35-cp35m-linux_x86_64.whl
-