Tensorflow installation error - tensorflow

I am trying to install tensorflow with virtualenv
I have successfully went through the first 5 steps but on the 5th
pip install --upgrade tensorflow
I am getting an error
Found existing installation: numpy 1.8.0rc1
DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling numpy-1.8.0rc1:
OSError: [Errno 1] Operation not permitted: '/tmp/pip-Z5MKQS-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'

You might be installing globally try adding sudo
sudo pip install --upgrade tensorflow
Otherwise just upgrade numpy separately with sudo and then you can try to install tensorflow locally.

I have no idea why you have that error.
But you can try with first installing pip3 and then try install with pip3 as
pip3 install --upgrade tensorflow
This will help you.

Related

Unable to install Tensorflow 2.2.0 using pip

I am using ubuntu 20.04 with python 3.6.5 Anaconda. Previously, I have installed Tensorflow 2.0.0a0 and it was showing in both "pip list" and "conda list" but Now I want to install version 2.2.0 because I am unable to import "stellargraph" as it requires 2.1.x or higher version But when I uninstalled 2.0.0a0 completely and installing Tensorflow 2.2.0 previously, it was not showing in pip list or conda list and so, again when I am trying to install it on terminal using :
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.2.0-cp36-cp36m-manylinux2010_x86_64.whl
as mentioned here, I am getting this output on terminal.
But it is not installed as I can't see it in pip list and site-packages folder.
pip list
Can anyone please help me ?

installing pythonnet or pywin32 in WSL

I am trying to install pywin32 and/or pythonnet in Windows 10 WSL.
When I run "pip install pythonnet", I get an error message saying "Failed building wheel for pythonnet".
Attempts at installing pywin32 is similarly unsuccessful.
Any suggestions on how to successfully install either?
Use
pip install pip --upgrade
pip install setuptools --upgrade
and try again.

I can't install tensorflow2.0

I wanna install tensorflow2.0, but it just failed.
According to error, it said, zsh: 2.0.0-beta1 not found.
pip install tensorflow==2.0.0-beta1
zsh: 2.0.0-beta1 not found.
Remove the hypen -
pip install tensorflow==2.0.0beta1
First,Download tensorflow package ,this is the version of tensorflow about 2.1rc in Windows,you can download by url(https://files.pythonhosted.org/packages/e3/44/a88475dc6905a9816227bff0f31355f7072efa119faff336aa18b27a3347/tensorflow-2.1.0rc2-cp36-cp36m-win_amd64.whl), other version and platform(https://pypi.org/project/tensorflow/2.1.0rc2/#files), finally,you can use pip command to install(pip install tensorflow****).

When I try to run code in tensorlflow I get this error. How can I fix this?

ImportError: cannot import name 'abs'
The fixes I already tried were going into my Anaconda environment, activating it
and running this command:
pip uninstall tensorflow protobuf --yes
pip install --ignore-installed --upgrade tensorflow-gpu
Now the error is the same.
Is there a reason why you're installing in pip if you use Anaconda? tensorflow-gpu is available in anaconda. Try
conda remove tensorflow*
conda remove protobuf
pip uninstall tensorflow*
pip uninstall protobuf
conda install tensorflow-gpu

pip install tensorflow fails - MAC OSError: [Errno 13]

I am trying to install tensorflow on mac Sierra. When I run pip install tensorflow I get following report.
It works fine for me by using command :
pip3 install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.10.1-py3-none-any.whlrflow-1.10.1-py3-none-any.whl
run sudo pip install tensorflow
The problem appears to be, that you have not got the rights to install tensorflow globally. Therefore, one solution appears to be, that you try to install tensorflow locally using the following command:
pip install tensorflow --user