Does anyone know how to uninstall TensorFlow from Anaconda environment? I want to upgrade the TensorFlow to the latest version which is ver.1.4, but not working well. So I want to uninstall it and then install the newest version.
You can remove a package with the conda remove command. So for TensorFlow this would be conda remove tensorflow.
If you have installed using pip then use:
pip uninstall tensorflow
The following helped me to completely remove Tensorflow after I used conda remove tensorflow and pip uninstall tensorflow
python3 -m pip uninstall protobuf
python3 -m pip uninstall tensorflow
python3 -m pip uninstall tensorflow-gpu
How to remove packages from Anaconda environment
Step 1:open anaconda navigator and select environment from which package you want to uninstall
Step 2:left click on the rectangular box and select mark for removal and finally click apply button
It can be easily uninstall by
conda uninstall tensorflow
from Anaconda
Related
I have downloaded the tensor flow using pip install tensorflow but when I try to access in the anaconda promy it show no module name tensor flow.
Is asking again to download the TensorFlow.
Kindly help me!
You should not mix conda and pip installations.
First, check if the pip installation you did was successful: run pip freeze and look at the output. If tensorflow is in the list, it was successful.
Then, if it's installed, uninstall it via pip: pip uninstall tensorflow.
Finally, you can install tensorflow through conda by running conda install tensorflow.
I have both TF and TF-GPU installed in the same virtual environment. when I test it in iPython terminal, it shows that TensorFlow, not TensorFlow-GPU is used. However, I want the GPU version to be used.
How to do that? Shouldn't I installed both in the same environment? Thanks.
I can recommend this:
pip uninstall tensorflow
pip uninstall tensorflow-gpu
pip install tensorflow
pip install tensorflow-gpu
Wish I knew a better answer
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
When I run :
pip install --upgrade tensorflow
This message pops up:
could not find the version that satisfies the requirement tensorflow
what should I do?
This is probably happening because you are using a pip version below 8.3.
In that case, you can install tensorflow using
For CPU version - pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.7.0-cp27-none-linux_x86_64.whl
For GPU version - pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.7.0-cp27-none-linux_x86_64.whl
These binaries are for version 1.7 and Python 2.7. You can get the latest wheel URLs from the official installation guide.
This worked for me
conda install pip
python -m pip install --upgrade pip
pip install --ignore-installed --upgrade tensorflow
This is what worked for me on Windows 10. Currently, Tensorflow only works with 64-bit windows, not 32-bit. So, you could create a new 64-bit environment and install tensorflow in it:
set CONDA_FORCE_32BIT=
conda create --name name_of_your_created_environment python=3.5
activate name_of_your_created_environment
conda install -c conda-forge tensorflow
Note:
CONDA_FORCE_32BIT=1 sets to a 32-bit environment whilst CONDA_FORCE_32BIT= sets to a 64-bit environment.
I have been trying to update tensorflow from 1.2.1 to 1.3.
I did the following on my terminal:
pip3 install tensorflow --upgrade
After this, I tried checking the version
python3 -c 'import tensorflow as tf; print(tf.__version__)'
This outputs 1.2.1 but not 1.3.0
All this had been done in an anaconda environment.
Operating system: macOS Sierra
I would like to know how one can perform this update.
Thank you
The solution that I found was to install pip inside the conda environment and use that instance of pip to install the packages. Please refer here
The reason I got the above error was that the python3 and pip3 paths were different.
This became evident when I ran the below commands inside the conda environment.
which python3
/Users/SMBP/anaconda/envs/tensorflow/bin/python3
which pip3
/usr/local/bin/pip3
Also, I think it is better to use virtualenv and virtualenvwrapper if you wish to work with tensorflow as it is the recommended way.