Skip to content

Instantly share code, notes, and snippets.

@mazz
Created July 19, 2018 20:05
Show Gist options
  • Save mazz/903b39e727fbc46cc1180f6274c622e9 to your computer and use it in GitHub Desktop.
Save mazz/903b39e727fbc46cc1180f6274c622e9 to your computer and use it in GitHub Desktop.
install tensorflow into a python venv
<download python3 package from python.org and install with package installer>
cd src; mkdir tensorflow; python3 -m venv tf-test; cd tf-test
source bin/activate
curl https://bootstrap.pypa.io/get-pip.py | python
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org grpcio==1.9.1
pip install tensorflow
@mazz
Copy link
Author

mazz commented Jul 22, 2018

better:

cd src; mkdir tensorflow; cd tensorflow; python3 -m venv tf-test; cd tf-test

source bin/activate

curl https://bootstrap.pypa.io/get-pip.py | python

pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org grpcio

pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.9.0-py3-none-any.whl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment