Monday, November 7, 2016

Tensorflow in Gentoo virtualenv

Just tried to install tensorflow in Gentoo virtual env with python 3.4 and failed

btw, you need to init virtualenv first. Then

(.neural)nika@localhost ~/study/simple_neuro_networks $ python --version
Python 3.4.3
(.neural)nika@localhost ~/study/simple_neuro_networks $ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc2-cp34-cp34m-linux_x86_64.whl
tensorflow-0.11.0rc2-cp34-cp34m-linux_x86_64.whl is not a supported wheel on this platform.

kinda weird, it works with python2.7. Just need to create virtualenv with python2.7 explicitly
# virtualenv -p python2.7 .tensorflow
# source .tensorflow/bin/activate
# (.tensorflow) pip install --upgrade  https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc2-cp27-none-linux_x86_64.whl
...
Successfully installed tensorflow-0.11.0rc2

So, it seems I will have to have two separate virtualenvs simultaneously.

No comments:

Post a Comment