TensorFlow install
Posted guxuanqing
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TensorFlow install相关的知识,希望对你有一定的参考价值。
Create a virtual environment (recommended)
Create a new virtual environment by choosing a Python interpreter and making a ./venv
directory to hold it:
$ virtualenv --system-site-packages -p python3 ./venv
Activate the virtual environment using a shell-specific command:
$ source ./venv/bin/activate # sh, bash, ksh, or zsh
When virtualenv is active, your shell prompt is prefixed with (venv)
.
Install packages within a virtual environment without affecting the host system setup. Start by upgrading pip
:
$ pip install --upgrade pip
$ pip list # show packages installed within the virtual environment
And to exit virtualenv later:
deactivate # don‘t exit until you‘re done using TensorFlow
以上是关于TensorFlow install的主要内容,如果未能解决你的问题,请参考以下文章
Windows 上的 TensorFlow:“pip install tensorflow”失败
Installing TensorFlow from Source