question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python version >= 3.5 required ?

See original GitHub issue

I can not install ImageHash on my legacy environment which uses Python 2.7.9

`$pip install ImageHash
Downloading/unpacking ImageHash
  Downloading ImageHash-4.0-py2.py3-none-any.whl (295kB): 295kB downloaded
Downloading/unpacking numpy (from ImageHash)
  Downloading numpy-1.17.0.zip (6.5MB): 6.5MB downloaded
  Running setup.py (path:/tmp/pip-build-wySIh5/numpy/setup.py) egg_info for package numpy
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-wySIh5/numpy/setup.py", line 31, in <module>
        raise RuntimeError("Python version >= 3.5 required.")
    RuntimeError: Python version >= 3.5 required.
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip-build-wySIh5/numpy/setup.py", line 31, in <module>

    raise RuntimeError("Python version >= 3.5 required.")

RuntimeError: Python version >= 3.5 required.`

However, I could install it on my other machine running Python 2.7.15+

In both environments I have Pillow==6.1.0

Is there any way around it?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JohannesBuchnercommented, Aug 21, 2019

The error indicates that this is not a imagehash issue, but pip tries to install the latest numpy version.

Install an older version of numpy. Likely your package manager has a suitable one.

0reactions
k0ficommented, Aug 22, 2019

Yes I tried only pip because ImageHash is supposed to run inside that environment so why need to install packages globally? The machine on which ImageHash installed seamlessly (inside python 2.7 env) is Ubuntu 18.08, and the one with which I have trouble installing is Debian 9.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Release Python 3.5.0
Python 3.5.10, the final release of the 3.5 series, is available here. ... download the needed software components at installation time.
Read more >
How to fix updated pip: RuntimeError: Python 3.5 or later is ...
I updated pip on Ubuntu 14.04 with pip install pip --upgrade and now it's broken, saying it needs Python 3.5 or above, but...
Read more >
RuntimeError: Python version >= 3.5 required. #693 - GitHub
When I am running "pip install -r requirements.txt", an error message prompts: > Complete output from command python setup.py egg_info: > ...
Read more >
Runtimeerror (python 3.5 or later is required) when I try to ...
You seem to have Python 3.4 installed. Update it to 3.5 and try again. setuptools dropped support for Python 3.4 as it is...
Read more >
Install Python version 3.5.x (32-bit) - HighBond
Install Python version 3.5.x (32-bit). From the Python downloads page, download a version of Python to your computer or the server.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found