Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 17331

Issue Installing TensorFlow or PyTorch

$
0
0

I am trying to Install TensorFlow or PyTorch. I tried doing in a normal project and also a virtual project. These are the errors I get and I tried many different versions and reading documentation.

pip install torchpip3 install torch --no-cache-dirpip install "tensorflow<2.11"pip install tensorflow==2.0pip install tensorflow --userpip3 install tensorflowpython3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.10.0-cp310-cp310-win_amd64.whlApy -m pip install torchpy -m pip install tensorflow --upgrade

and many other different tries

Python Version:

Python 3.12.0pip 23.3.1

I also tried to use Conda

ERROR: Could not find a version that satisfies the requirement torch(from versions: none)

ERROR: No matching distribution found for torch

ERROR: Could not find a version that satisfies the requirementtensorflow==2.10.0 (from versions: none)

ERROR: No matching distribution found for tensorflow==2.10.0

ERROR: tensorflow_cpu-2.10.0-cp310-cp310-win_amd64.whl is not asupported wheel on this platform.

ERROR: Could not find a version that satisfies the requirementtensorflow (from versions: none)

ERROR: Can not perform a '--user' install. User site-packages are notvisible in this virtualenv.

ERROR: Could not find a version that satisfies the requirementtorch==2.0.1 (from versions: none)

ERROR: No matching distribution found for torch==2.0.1

ERROR: No matching distribution found for tensorflow

ERROR: Could not find a version that satisfies the requirementtensorflow[and-cuda] (from versions: none)

ERROR: No matching distribution found for tensorflow[and-cuda]

ERROR: Could not find a version that satisfies the requirementtensorflow (from versions: none)

ERROR: No matching distribution found for tensorflow

Exception has occurred: RuntimeErrorAt least one of TensorFlow 2.0 or PyTorch should be installed. To install TensorFlow 2.0, read the instructions at https://www.tensorflow.org/install/ To install PyTorch, read the instructions at https://pytorch.org/.

and many other errors as I entered the install commands for pytorch or sensorflow

I need to have 1 of these libraries to use transformers in huggingface.I tried to install this in a Virtual Environment and out of one.

Thank you


Viewing all articles
Browse latest Browse all 17331

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>