d2l-ai / d2l-en

Interactive deep learning book with multi-framework code, math, and discussions. Adopted at 500 universities from 70 countries including Stanford, MIT, Harvard, and Cambridge.
https://D2L.ai
Other
23.36k stars 4.29k forks source link

Tensorflow package cannot be installed due to missing distributions #2517

Open TPK28 opened 1 year ago

TPK28 commented 1 year ago

When attempting to install the Tensorflow package using pip, the following error occurs:

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

AnirudhDagar commented 1 year ago

Hi @TPK28, can you please share what tensorflow version you are trying to install? And the OS? We suggest following yaml file to create the d2l conda environment (this has been tested on Linux/MacOS): https://github.com/d2l-ai/d2l-en/blob/master/static/build.yml

TPK28 commented 1 year ago

HI @AnirudhDagar I've tried it to tensorflow last release 2.12.0 and other dependencies on macOS 10.13.6.

AnirudhDagar commented 1 year ago

Ok, in that case, I'm pretty sure this is due to the python version. Please also make sure you are using Python 3.9/3.10 etc. seems like you are trying to pip install for a python version that has no wheels for tensorflow on pypi.

You can check the output of python --version to confirm the version.

AnirudhDagar commented 1 year ago

@TPK28 did it work with a newer python version (like python 3.9)?, if yes, please close the issue.