To install Tensorflow via Cmd Command?

202 views Asked by At

When installing TensorFlow via the command line:

pip install tensorflow

I receive the following error message:

ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: Tensorflow's matching distribution could not be located.

I anticipate having Tensorflow installed on my system.

3

There are 3 answers

0
Cem Koçak On

try this for for Python 2. x :

pip install --index-url=https://pypi.org/simple/ tensorflow

try this for for Python 3. x :

pip3 install --index-url https://pypi.org/simple/ tensorflow

See also pip install documentation: https://pip.pypa.io/en/stable/cli/pip_install/

0
Abhijit On

Latest python version of 3.12 don't support for tenserflow

2
Sree Haran On

You system might lack some of the requirements. Check for hardware and software requirements for tensorflow in this URL: https://www.tensorflow.org/install/pip.

If your system is compatible try these steps:

  • Update pip: Ensure that your pip version is up to date by running:

          pip install --upgrade pip
    
  • Specify Version: You can try specifying a specific version:

          pip install tensorflow==<version>
    
  • Use a Virtual Environment: Create a new virtual environment and try installing TensorFlow within that environment. Sometimes, conflicts with other packages can cause installation issues. Conda environment is my suggestion for ML projects. (conda installation: https://conda.io/projects/conda/en/latest/user-guide/install/index.html). You can also use Python's default virtual environment venv

          conda create --name myProject python=3.9
          conda activate myProject