by TC 2018/06/26
linux DL
linux installation guide
For my Ubuntu, it is as simple as running the bash script in terminal,
bash Anaconda3-5.2.0-Linux-x86_64.sh
Once it is done, run python in terminal and it will show
"Python 3.6.5 |Anaconda, Inc.|"
(optional) Only when there is a old default version of python already installed, we need to edit the bashrc to add path
vim ~/.bashrc
export PATH="/home/assimov/anaconda3/bin:$PATH"
source ~/.bashrc
Test again until the correct result shows in prompt.
Open the terminal,
# clone the base env to create an environment called "tensorflowtest"
conda create --clone base --name tensorflowtest
# activate the environment
# note that this specific command in win is different
source activate tensorflowtest
# check how many libs are included in tensorflowtest
conda list
# install msgpack
# note that there is inconsistency in this new version of tf.
# So we need to install this
pip install msgpack
# install tensorflow
pip install tensorflow
# install keras
pip install keras
conda list
should hava tensorflow and keras libs.
# prompt python session
python
# import libs
import tensorflow as tf
## No news is good news! Just some minor future warnings are acceptable
import keras
# if corrects, it will show: Using TensorFlow backend.
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing