While I am executing the following command it errors out:
<><><><><><><><><><><><><><><><><><><><><>
(tensorflow36) C:\Users\usr1>conda install tensorflow
Fetching package metadata .................
PackageNotFoundError: Packages missing in current channels:
- tensorflow
We have searched for the packages in the following channels:
http://conda.anaconda.org/gurobi/win-32
http://conda.anaconda.org/gurobi/noarch
https://conda.anaconda.org/anaconda-fusion/win-32
https://conda.anaconda.org/anaconda-fusion/noarch
https://repo.continuum.io/pkgs/main/win-32
https://repo.continuum.io/pkgs/main/noarch
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/win-32
What am I missing??
As mentioned in the docs (https://www.tensorflow.org/install/install_windows):
within Anaconda, we recommend installing TensorFlow with the pip
install command, not with the conda install command.
CPU-only version:
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl
GPU version:
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.1-cp35-cp35m-win_amd64.whl
The --upgrade option of pip will make sure the newest available version of tensorflow gets installed. For more info go to Pip installation on Windows in https://www.tensorflow.org/versions/r0.12/get_started/os_setup
Related
I was trying to install tensorflow in a new conda environment, but I met an incompatibility issue.
First, I use conda search tensorflow-gpu -c conda-forge to search available packages, and the return is
Then, I use command conda create -n tf27 python=3.8 tensorflow-gpu=2.7.0 -c conda-forge to install version 2.7.0, but I met the error below
conda information:
You can check all available packages in anaconda by using the below code in the anaconda prompt:
conda list
To install TensorFlow in the anaconda environment:
conda install pip
#If you require the latest pip
pip install --upgrade pip
#To install current stable release of TensorFlow for CPU and GPU
pip install tensorflow
pip install tenosrflow-gpu
You can also specify the version you want to install as below:
pip install tensorflow==2.7
pip install tenosrflow-gpu==2.7
To install the latest version of TensorFlow
pip install --upgrade tensorflow
As a reference, please follow this document for installing TensorFlow in anaconda. Also check this Tested build configurations to find the compatible TensorFlow version for CPU and GPU support in your system.
The CPU I have doesn't have AVX instructions, so I'm forced to install versions of Tensorflow which are below 1.16. I'm using
pip3 install tensorflow==1.15
And I'm getting this error:
ERROR: Could not find a version that satisfies the requirement tensorflow==1.15 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4)
ERROR: No matching distribution found for tensorflow==1.15
I'm running Ubuntu 20.04 and I have updated all the packages. I've even downgraded python to 3.6.9 but still I'm unable to install older versions of Tensorflow
Try to create a virtual environment with "python 3.7"
python3.7 -m venv my_env
source my_env/bin/activate
then run the install command "pip install tensorflow==1.14"
This often happens when pip is not up to date.
If you're using a virtual environment, use
pip install --upgrade pip
pip install tensorflow==1.15
If you're using the system interpreter, use this (sudo may be required):
pip3 install --upgrade pip
pip3 install tensorflow==1.15
Hi you can try downloading tensor flow 2 using the link:-
illya13.github.io/RL/tutorial/2020/04/26/installing-tensorflow-on-ubuntu-20.html
It could be a replicate question, but none of the existing questiones have been useful for me. I've tried all the solutions given here (stackoverflow)
I get this error:
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
I have this version of the pip on my Pycharm machine with Python 3.6 (Windows 10):
Package Version -------
pip 18.0 --
setuptools 40.4.3 --
wheel 0.32.0
I would like to install tensorflow and I have tried to take a look at this link as most of the people suggested.
Does anybody want to guide me in my installation?
below command worked for me.
pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
Installation Commands
The following commands are based on the following installation guide here.
using cmd
C:> pip3 install --upgrade tensorflow // cpu
C:> pip3 install --upgrade tensorflow-gpu // gpu
using Anaconda
C:> conda create -n tensorflow python=3.5
C:> activate tensorflow
(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow
(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow-gpu
You can get step by step instructions here
I want to install Tensorflow (CPU)(py 3.6) for windows, my company uses a proxy, so i can't install through pip, i have to build it from source.
I unzipped tensorflow/tensorboard/protobuf.tar.gz in my Anaconda3 folders.
When i use the setup.py files, it occurs that i need tensorboard for installing tensorflow, and i need tensorflow for installing tensorboard.
So i don't know how to proceed for installing Tensorflow without using dependencies from pypi.org.
Thanks
You can use pip with proxy. I was struggling with company proxy too and that was the solution for me:
Run a command prompt as administrator and type the following:
pip install --proxy http://username:password#proxy_url:port tensorflow
(this will install the latest CPU version of tensorflow)
This should work.
Installing with Anaconda
follow steps to install TensorFlow in an Anaconda environment:
Download and install Anaconda.
Create a conda environment named tensorflow to run a version of Python by invoking the following command:
$ conda create -n tensorflow
Activate the conda environment by issuing the following command:
$ source activate tensorflow
(tensorflow)$ # Your prompt should change
(tensorflow)$ pip install --ignore-installed --upgrade tfBinaryURL
where tfBinaryURL is the URL of the TensorFlow Python package. For example, the following command installs the CPU-only version of TensorFlow for Python 2.7:
(tensorflow)$ pip install --ignore-installed --upgrade \ https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.2.1-cp34-cp34m-linux_x86_64.whl
For detail offical link
I downloaded the latest stable Anaconda install off the Continuum website which turned out to be Anaconda 4.3.1 (64-bit) and comes with Python 3.6.0. I am in a Windows 10 environment.
However pip3 is missing and I cannot install any Python 3.x packages via pip3.
What am I doing wrong?
If you do not have another environment installed python 3+ will default to just pip I believe since pip3 is just an alias for pip.
pip install --upgrade pip
or You can do it with the associated Python binary too; if it executable as python3, then use that:
python3 -m pip install --upgrade pip
after that check:
pip --version
otherwise just try pip-3.6
for tensorflow on conda:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.1-cp35-cp35m-win_amd64.whl
for python 3.6 due to conda providing the 3.5 one: from
pip install https://testpypi.python.org/packages/db/d2/876b5eedda1f81d5b5734277a155fa0894d394a7f55efa9946a818ad1190/tensorflow-0.12.1-cp36-cp36m-win_amd64.whl
Since this wheel had a version that is undesirable we could instead install
the wheel directly from gohlke's windows binaries repository :
download the wheel for python 3.6 from here and then install the wheel:
cd to the directory containing .whl file:
pip install some-package.whl
easy_install pip
I used it, for the problem of pip installation in miniconda.
sometimes the pip is not properly installed but it claims yes
Solution:- (Note:- This will surely work for all!!)
Step 1:- conda search python
Step 2:- conda install python=3.5.2
Step 3:- pip install tensorflow
Step 4:- import tensorflow as tf
I have Windows10, 64bit, Anaconda4.3 with Python 3.6.
Karthik' soluton worked for me. Before that I tried everything including "conda create -n tensorflow python=3.5", but it did not work (although "python --version" gave 3.5.3).
you should be able to install tensorflow using
$ conda install -c conda-forge tensorflow