Cython installation fails with pip - Cython.Runtime.refnanny extension
See original GitHub issueI’m not sure whether this is a Cython or a pip issue, but building Cython using pip install --upgrade cython failed for me on two quite different python-2.7 installations during the step of building the Cython.Runtime.refnanny extension. One machine was Mac OS X Sierra with python installed from homebrew and using virtualenv. The other machine was on our linux cluster running CentOs. Virtualenv was present in both cases.
bash-4.1$ pip install --upgrade cython
Downloading/unpacking cython
Downloading Cython-0.25.tar.gz (1.7Mb): 1.7Mb downloaded
Running setup.py egg_info for package cython
Unable to find pgen, not compiling formal grammar.
.... skipping lots ...
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/xxx/virtualenvs/volker-py27/build/cython/Cython/Compiler/Code.o -L/g/software/linux/pack/python-2.7/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/Cython/Compiler/Code.so
building 'Cython.Runtime.refnanny' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/g/software/linux/pack/python-2.7/include/python2.7 -c /home/xxx/virtualenvs/volker-py27/build/cython/Cython/Runtime/refnanny.c -o build/temp.linux-x86_64-2.7/home/xxx/virtualenvs/volker-py27/build/cython/Cython/Runtime/refnanny.o
gcc: /home/xxx/virtualenvs/volker-py27/build/cython/Cython/Runtime/refnanny.c: No such file or directory
pathnames above slightly anonymized
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Cython 0.21 installation/compilation error - Stack Overflow
I have been attempting to install Cython 0.21 on Linux Mint 17. I have tried using pip: sudo pip install Cython.
Read more >Installing Cython — Cython 3.0.0a11 documentation
On Ubuntu or Debian, the command sudo apt-get install build-essential python3-dev will fetch everything you need. Mac OS X To retrieve gcc, one...
Read more >Kivy install on Ubuntu issue - Google Groups
I believe I got python installed properly. When I attempt to install MPF from the downloaded folder, it seems to progress ok until...
Read more >在Python 3.8.2中安装Kivy时出现了错误 - 七牛云
ERROR : Command errored out with exit status 1: command: 'C:\Users\LENOVO ... YOGA\\AppData\\Local\\Temp\\pip-wheel-4uht95r0\\cython\\setup.py'"'"'; ...
Read more >[Maya-Python] MayaPy Cython Import Error
C:\Program Files\Autodesk\Maya2017\Python\Scripts>pip install cython ... compile an extension which could then be imported within Maya. Post by Ruchit Bhatt
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
I think I figured this out. It was due to a really old version of setuptools being used.
yum install python-devel gcc
IIRC, that’s all I needed on centos 6.x to build Cython.