CUPY 7.0 fails with Python 2.7
See original GitHub issue- Conditions (you can just paste the output of
python -c 'import cupy; cupy.show_config()'
)
- Python version 2.7.15+
- CuPy version 7.0.0
- Ubuntu 18.04
- CUDA version NA
- cuDNN/NCCL version (if applicable) NA
- Code to reproduce
Run python, issue `import cupy`.
- Error messages, stack traces, or logs
File "<string>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/cupy/__init__.py", line 47, in <module>
import cupyx as _cupyx
File "/usr/local/lib/python2.7/dist-packages/cupyx/__init__.py", line 11, in <module>
from cupyx._ufunc_config import errstate # NOQA
File "/usr/local/lib/python2.7/dist-packages/cupyx/_ufunc_config.py", line 17
def errstate(*, divide=None, over=None, under=None, invalid=None, linalg=None):
^
SyntaxError: invalid syntax
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Installation Guide — CuPy 6.7.0 documentation
Install CuPy¶. Wheels (precompiled binary packages) are available for Linux (Python 2.7 or later) and Windows (Python 3.6 or later). Package names are ......
Read more >Can not import cupy with chainer 4.1.0 - Stack Overflow
i recently encountered this error on windows environment python 3.6 vs 2015 cuda 8.0. i tried. pip install cupy.
Read more >CuPy Documentation - Read the Docs
Python : v3.7.0+ / v3.8.0+ / v3.9.0+ / v3.10.0+ / v3.11.0+. Note: Currently, CuPy is tested against ... 2.7.1 pip fails to install...
Read more >Problems installing CuPy on latest Anaconda - Google Groups
Solving environment: failed with initial frozen solve. ... to be incompatible with the existing python installation in your environment: Specifications:
Read more >Installation — Chainer 7.8.0 documentation
Python 2 is not supported in Chainer v7.x releases. Please consider migrating Python 3 or ... CuPy v7.8.0 is the recommended version for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi Janusz. 7.0 only supports Python 3.5-3.8. I think you will have to stay on the 6.x releases for python 2 support.
Good suggestion. I made a PR (#2766) for this.