TensorFlow: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
sudo apt udpate | sudo apt udpate | ||
sudo apt install python3-dev python3-pip python3-venv | sudo apt install python3-dev python3-pip python3-venv | ||
</source> | </source> | ||
Line 12: | Line 11: | ||
apk update | apk update | ||
apk add bash gcc musl-dev python3 python3-dev py3-pip libxslt-dev libxml2-dev | apk add bash gcc musl-dev python3 python3-dev py3-pip libxslt-dev libxml2-dev | ||
</source> | </source> | ||
Line 23: | Line 21: | ||
python3 -m venv .venv --prompt="TensorFlow" | python3 -m venv .venv --prompt="TensorFlow" | ||
source .venv/bin/activate | source .venv/bin/activate | ||
pip install --upgrade pip | |||
</source> | |||
| valign="top" | | |||
<source lang="bash"> | |||
python3 -m venv .venv --prompt="TensorFlow" | |||
source .venv/bin/activate | |||
pip install --upgrade pip | pip install --upgrade pip | ||
</source> | |||
|- | |||
| colspan="2" | | |||
---- | |||
|- | |||
| valign="top" colspan="2" | | |||
<source lang="bash"> | |||
# export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |||
# pip install jep ads gspread | |||
</source> | |||
|- | |||
| colspan="2" | | |||
---- | |||
|- | |||
| valign="top" | | |||
<source lang="bash"> | |||
pip install tensorflow | pip install tensorflow | ||
pip show tensorflow | pip show tensorflow | ||
Line 31: | Line 53: | ||
| valign="top" | | | valign="top" | | ||
<source lang="bash"> | <source lang="bash"> | ||
pip install tensorflow | pip install tensorflow | ||
pip show tensorflow | pip show tensorflow |
Revision as of 13:52, 11 February 2023
Install
sudo apt udpate
sudo apt install python3-dev python3-pip python3-venv
|
apk update
apk add bash gcc musl-dev python3 python3-dev py3-pip libxslt-dev libxml2-dev
|
| |
python3 -m venv .venv --prompt="TensorFlow"
source .venv/bin/activate
pip install --upgrade pip
|
python3 -m venv .venv --prompt="TensorFlow"
source .venv/bin/activate
pip install --upgrade pip
|
| |
# export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
# pip install jep ads gspread
| |
| |
pip install tensorflow
pip show tensorflow
|
pip install tensorflow
pip show tensorflow
|
| |
python -c 'import tensorflow as tf; print("Tensorflow Version: ", tf.__version__)'
pip uninstall tensorflow
|
Knowledge
python3 -m venv .venv --prompt="TensorFlow"
# source .venv/bin/activate
# (academia) $
|
python3 -m venv .venv --prompt="TensorFlow"
# source .venv/bin/activate
# (molecule) $
|
python -m venv .venv --prompt="TensorFlow"
# .venv\Scripts\activate
# (molecule) PS>
|
| ||
apk list --installed|grep ^bash apk list --installed|grep bash apk add gcc |
apk search | grep ^bash apk search | grep bash apk add g++ |
apk info --contents bash apk info --rdepends bash apk add libc6-compat |
References
| ||