Installing TensorFlow in a Virtualenv on OSX

2019-05-18 15:08发布

I am following the instructions for installing TensorFlow in a virtual environment on Mac, however I am not sure what this instruction means:

(tensor flow)$ pip install --upgrade <$url_to_binary.whl>

Specifically the url_to_binary.whl bit.

Installation has progressed fine so far. I tried using that exact command but it printed an error:

-bash: syntax error near unexpected token `newline'

I assume that everything between the <> is a placeholder and refers to some location, not sure what though.

3条回答
放我归山
2楼-- · 2019-05-18 15:20

In my opinion,you may try like this:

(tensorflow)$ pip install --upgrade

https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl

查看更多
别忘想泡老子
3楼-- · 2019-05-18 15:23

Solved.

It's now installed and up and running.

<$url_to_binary.whl> should be replaced by https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl

I assume that was the file they meant.

查看更多
\"骚年 ilove
4楼-- · 2019-05-18 15:27

They meant the binary they told about previously in the binary installation section for MacOS

Only CPU-version is available at the moment.

$ pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl

So the path to binary is https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl

查看更多
登录 后发表回答