简体   繁体   中英

Installing Tensorflow with Python 3.5 and Anaconda

I have Anaconda 3.19.3 with Python 3.5 on a Mac. Now, I would like to install TensorFlow via pip . The installation instructions here also include setup instructions for installing TensorFlow under Python 3.3+.

So, I have executed sudo easy_install --upgrade six , no problem. When I execute sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.0-py3-none-any.whl , after downloading the necessary packages, I get the following:

Installing collected packages: setuptools, protobuf, tensorflow
Found existing installation: setuptools 19.6.2
    Uninstalling setuptools-19.6.2:
        Successfully uninstalled setuptools-19.6.2
Rolling back uninstall of setuptools
Exception:
...
AttributeError: _ep_map
During handling of the above exception, another exception occurred:
...
FileNotFoundError: [Errno 2] No such file or directory: '/Users/me/anaconda/lib/python3.5/site-packages/setuptools-19.6.2-py3.5.egg'

I have left out some of the error message to save space.

What is this and, more importantly, what can I do about it?

See the answer here: Error setuptools when installing tensorflow

In particular, you could try adding the --ignore-installed tag to the end of your pip command.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM