Install tensor flow in virtualenv
Configuration:
- macOS High Sierra 10.13.2
- Virtualenv python3.6
- Tensorflow 1.3.0
Create a virtualenv environment.
123pip3 install --upgrade virtualenvvirtualenv -- system-site-packages -p python3 ~/tensorflow #python3Activate the virtualenv environment.
1source ~/tensorflow/bin/activateInstall tensor flow.
1(tensorflow)$ pip3 install --upgrade tensorflowIf you can’t import tensorflow in promt. Issue a command of the following format.
12pip3 install --upgrade\https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.3.0-py3-none-any.whl
结束!