tensorflow: Cannot remove entries from nonexistent
Hello everyone
I am using Anaconda on Mac OS 10.11
I created a new environment with anaconda
conda create -n tensorflow python
Then tried to install tensorflow
pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py2-none-any.whl
but I faced an error
Installing collected packages: six, setuptools, protobuf, numpy, tensorflow
Found existing installation: setuptools 19.1.1
**Cannot remove entries from nonexistent file /Users/qdang/anaconda/envs/tensorflow/lib/python2.7/site-packages/easy-install.pth**
How could I install tensorflow with anaconda python 2.7?
Btw, I have CUDA 3.0 (Nvidia 750M) with my Macbook? How could I utilize its power other than running only on CPU mode?
Thanks,
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 5
- Comments: 26 (1 by maintainers)
@osdf - yeah I hit this too. Used the following to solve it when using conda (after I already successfully installed using the ubuntu pip directly) so that I had iPython notebook (Jupyter) installed.
List conda environments
$ conda env list
Enable a conda environment…
$ source activate [your env or root]
check python…
$ which python
… this should be something like ~/anaconda2/bin/python$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp27-none-linux_x86_64.whl
… got the error above, so added the --ignore-installed flag per https://github.com/pypa/pip/issues/2751
$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp27-none-linux_x86_64.whl --ignore-installed
… everything was successful…
$ python
>>> import tensorflow
… success and back in business!
See here: https://github.com/pypa/pip/issues/2751. Possible work-around:
pip install --upgrade --I setuptools
@osdf thanks for your solution! it works pip install --upgrade -I setuptools
Both solutions worked for me: 1.
The solution is posted here
https://github.com/tensorflow/tensorflow/issues/135
It is for tensorflow 0.5.0 but still works with version 0.6.0
1.download ez_setup.py 2.run script >python ez_setup.py It works for me (in windows 7)