简体   繁体   中英

Error installing tensorflow on python 3.11

I need to import tensorflow but I'm not capable to install it since when I run

pip install tensorflow

it shows

ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow

I think the problem is that tensorflow runs in python < 3.11 versions. But I'm not sure. I've been looking for a solution using a virtual enviroment with python 3.10, but it seems pretty complicated for a noob like me. Thanks in advance

You can try alternative methods

pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.8.0-py3-none-any.whl

If you want to build TensorFlow from source check this .

I ran into the same problem but I got tensorflow to install by installing on python 3.10.9 Python.org

Then adding those directories to my PATH and moving them to top priority. image of my PATH environment variables

Confirm Python version number in Command Prompt

python --version
Python 3.10.9

Install tensorflow

python.exe -m pip install tensorflow

Hope that helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM