Skip to content
Sign upLog in
← Back to Community
Tensorflow not installing
Profile icon


I'm trying to install the tensorflow package and I'm getting this error:

[EnvCommandError] Command ['/home/runner/.local/share/virtualenvs/python3/bin/python', '-m', ' pip', 'install', '--no-deps', 'tensorflow==2.1.0'] errored with the followin g output: Collecting tensorflow==2.1.0 ERROR: Could not find a version that satisfies the requirement tensorflow= =2.1.0 (from versions: 2.2.0rc1, 2.2.0rc2) ERROR: No matching distribution found for tensorflow==2.1.0 WARNING: You are using pip version 19.2.3, however version 20.0.2 is availab le. You should consider upgrading via the 'pip install --upgrade pip' command. add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)... exit status 1 Package operation failed.

I know that perhaps is not ideal for doing ML, but I trying to create a workshop for students, most of whom will be on chrome books or school laptops where they have to code online.

Is there any solution to the TensorFlow install problem? If not, I can just use for the workshop, but I was hoping there would be a way to do it with

Profile icon
Profile icon
Profile icon
Profile icon
Profile icon

Hey! I think I solved this myself. I can't figure out how to delete my ask, but if a moderator has that power, that is fine.

Solution (in case anyones wondering):
Change the pyproject.toml to contain this code:

[tool.poetry] name = "tensorflow-example" version = "0.1.0" description = "" authors = ["Your Name <[email protected]>"] [tool.poetry.dependencies] python = "^3.7" tensorflow = "^2.2.0rc1" keras = "^2.3" pandas = "^1.0.3" numpy = "^1.18.2" sklearn = "^0.0" [] [build-system] requires = ["poetry>=0.12"] build-backend = "poetry.masonry.api"

I found this fix here:
I had to make sure I specified all the packages I was using in that .tmol file as well as the correct versions.