Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue installing tensor flow python #38750

Closed
JosiasAurel opened this issue Apr 21, 2020 · 21 comments
Closed

Issue installing tensor flow python #38750

JosiasAurel opened this issue Apr 21, 2020 · 21 comments
Assignees
Labels
type:build/install Build and install issues

Comments

@JosiasAurel
Copy link

Please I have issues installing tensorflow in python using pip. I tried

pip install tensorflow

And

pip3 install tensorflow 

System information

  • OS Platform Linux Ubuntu 18):
  • Mobile device (Android (using termux) if the issue happens on mobile device:
  • TensorFlow installed from (source or binary):
  • TensorFlow version:
  • Python version: 3
  • Installed using virtualenv? No
    pip? Yes
    conda?: No
    I am using android

Log :

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

@JosiasAurel JosiasAurel added the type:build/install Build and install issues label Apr 21, 2020
@ravikyram
Copy link
Contributor

ravikyram commented Apr 22, 2020

@JosiasAurel

Request you to fill issue template

You are using 64-bit version of Python or 32 bit version?.Please, refer link1.Also, let us know which version of Tensorflow you are using?.Please, follow instruction in Tensorfow website.Thanks!

@ravikyram ravikyram added the stat:awaiting response Status - Awaiting response from author label Apr 22, 2020
@capSAR273
Copy link

I ran into the same issue, I am using Python 3.7.4 (64 bit), and the latest pip 20.0.2

@ravikyram
Copy link
Contributor

@JosiasAurel

Provide the exact sequence of commands / steps that you executed before running into the problem.Thanks!

@JosiasAurel
Copy link
Author

In termux I used

pip install tensorflow

The error stated above occurred

Same when I used in Ubuntu

pip3 install tensorflow

Windows I used the same command

pip install tensorflow

@ravikyram ravikyram assigned ymodak and unassigned ravikyram Apr 23, 2020
@tensorflowbutler tensorflowbutler removed the stat:awaiting response Status - Awaiting response from author label Apr 25, 2020
@ymodak
Copy link
Contributor

ymodak commented Apr 25, 2020

@JosiasAurel What is your pip version? and python version?
Try

pip show pip

TF requires pip version >=19.0

@ymodak ymodak added the stat:awaiting response Status - Awaiting response from author label Apr 25, 2020
@JosiasAurel
Copy link
Author

My version of pip is 20.0.2

@JosiasAurel
Copy link
Author

when I type

pip show pip

My output is

pip show pip
Name: pip
Version: 20.0.2
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email: pypa-dev@groups.google.com
License: MIT
Location: /data/data/com.termux/files/usr/lib/python3.8/site-packages
Requires:
Required-by:

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Status - Awaiting response from author label Apr 28, 2020
@ymodak
Copy link
Contributor

ymodak commented May 3, 2020

I see you are using python 3.8. We added python 3.8 support with Tensorflow 2.2.0-rc1.
See release notes https://github.com/tensorflow/tensorflow/releases/tag/v2.2.0-rc1
Can you try installing the latest tensorflow release candidate?
pip install tensorflow==2.2.0-rc4

@ymodak ymodak added the stat:awaiting response Status - Awaiting response from author label May 3, 2020
@JosiasAurel
Copy link
Author

I still get an error

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

@mihaimaruseac
Copy link
Collaborator

Is your Python 64 bits?

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Status - Awaiting response from author label May 6, 2020
@ymodak ymodak added the stat:awaiting response Status - Awaiting response from author label May 7, 2020
@google-ml-butler
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

@google-ml-butler google-ml-butler bot added the stale This label marks the issue/pr stale - to be closed automatically if no activity label May 14, 2020
@Dimidrol112
Copy link

I faced same issue. Just chek Is your Python 64 bits with

import platform
platform.architecture()

And if it 32bit just reinstall python to 64.

@JosiasAurel
Copy link
Author

64 bit

@google-ml-butler google-ml-butler bot removed the stale This label marks the issue/pr stale - to be closed automatically if no activity label May 15, 2020
@mihaimaruseac
Copy link
Collaborator

What is the output of pip debug --verbose?

@JosiasAurel
Copy link
Author

There it is

pip version: pip 20.1 from /data/data/com.termux/files/usr/lib/python3.8/site-packages/pip (python 3.8)
sys.version: 3.8.2 (default, Mar 20 2020, 08:09:52)
[Clang 8.0.7 (https://android.googlesource.com/toolchain/clang b55f2d4ebfd35bf6
sys.executable: /data/data/com.termux/files/usr/bin/python3
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: linux
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /data/data/com.termux/files/usr/lib/python3.8/site-packages/pip/_vendor/certifi/cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
  appdirs==1.4.3
  CacheControl==0.12.6
  colorama==0.4.3
  contextlib2==0.6.0.post1 (Unable to locate actual module version, using vendor.txt specified version)
  distlib==0.3.0
  distro==1.5.0 (Unable to locate actual module version, using vendor.txt specified version)
  html5lib==1.0.1
  ipaddress==1.0.23
  msgpack==1.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  packaging==20.3
  pep517==0.8.2
  progress==1.5
  pyparsing==2.4.7
  requests==2.23.0
  certifi==2020.04.05.1
  chardet==3.0.4
  idna==2.9
  urllib3==1.25.8
  resolvelib==0.3.0
  retrying==1.3.3 (Unable to locate actual module version, using vendor.txt specified version)
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.14.0
  toml==0.10.0
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 30
  cp38-cp38-linux_aarch64
  cp38-abi3-linux_aarch64
  cp38-none-linux_aarch64
  cp37-abi3-linux_aarch64
  cp36-abi3-linux_aarch64
  cp35-abi3-linux_aarch64
  cp34-abi3-linux_aarch64
  cp33-abi3-linux_aarch64
  cp32-abi3-linux_aarch64
  py38-none-linux_aarch64
  py3-none-linux_aarch64
  py37-none-linux_aarch64
  py36-none-linux_aarch64
  py35-none-linux_aarch64
  py34-none-linux_aarch64
  py33-none-linux_aarch64
  py32-none-linux_aarch64
  py31-none-linux_aarch64
  py30-none-linux_aarch64
  cp38-none-any
  py38-none-any
  py3-none-any
  py37-none-any
  py36-none-any
  py35-none-any
  py34-none-any
  py33-none-any
  py32-none-any
  py31-none-any
  py30-none-any

@mihaimaruseac
Copy link
Collaborator

Compatible tags: 30
  cp38-cp38-linux_aarch64
  cp38-abi3-linux_aarch64
  cp38-none-linux_aarch64
  cp37-abi3-linux_aarch64
  cp36-abi3-linux_aarch64
  cp35-abi3-linux_aarch64
  cp34-abi3-linux_aarch64
  cp33-abi3-linux_aarch64
  cp32-abi3-linux_aarch64
  py38-none-linux_aarch64
  py3-none-linux_aarch64
  py37-none-linux_aarch64
  py36-none-linux_aarch64
  py35-none-linux_aarch64
  py34-none-linux_aarch64
  py33-none-linux_aarch64
  py32-none-linux_aarch64
  py31-none-linux_aarch64
  py30-none-linux_aarch64
  cp38-none-any
  py38-none-any
  py3-none-any
  py37-none-any
  py36-none-any
  py35-none-any
  py34-none-any
  py33-none-any
  py32-none-any
  py31-none-any
  py30-none-any

None of those tags match tags for the released pips

I see you are using Android? Probably you want to use tflite instead of tensorflow, since we don't directly build for mobile platforms.

@JosiasAurel
Copy link
Author

Okay thanks. I don't have a PC that's why I use termux. But Pydroid 3 supports it

@mihaimaruseac
Copy link
Collaborator

An alternative is to use Google Colab: Notebooks similar to jupyter notebooks but treated similar to other Google Drive files so you can access them from anywhere while they run on Google infra.

@ymodak
Copy link
Contributor

ymodak commented Jun 8, 2020

Closing this issue now. Thanks!

@ymodak ymodak closed this as completed Jun 8, 2020
@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@RobertNissan
Copy link

pip install sdcard/tflite-support_0.1.0-py3-none-any.whl
WARNING: Requirement 'sdcard/tflite-support_0.1.0-py3-none-any.whl' looks like a filename, but the file does not exist
Processing ./sdcard/tflite-support_0.1.0-py3-none-any.whl
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/data/data/com.termux/files/home/sdcard/tflite-support_0.1.0-py3-none-any.whl'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

8 participants