pip3 install cython fails every time.. It's frustrating.

444 views
Skip to first unread message

Himanshu Mishra

unread,
Jun 26, 2015, 1:41:32 AM6/26/15
to cython...@googlegroups.com
Hi all,

I want to use Cython over python3, but without installing it for python3, modules do not recognize it.

But
pip3 install cython

does not work. Does it work for all? What am I doing wrong. I also tried adding `sudo` in the start.

Error log.


Thank you very much!

Stefan Behnel

unread,
Jun 26, 2015, 2:03:31 AM6/26/15
to cython...@googlegroups.com
The error message is actually pretty clear here:

"""
error: could not create
'/opt/python/3.4.2/lib/python3.4/site-packages/__pycache__/cython.cpython-34.pyc':
Permission denied
"""

It's not a Cython problem but rather a problem with the way you try to
install the packages into the global Python runtime. You should use a
virtualenv instead, as you do for Python 2.7.

Also, for test builds, I recommend installing Cython with the option
"--no-cython-compile", i.e. as plain Python package. That will speed up the
install time considerably.

Stefan

Hai Nguyen

unread,
Jun 26, 2015, 2:20:25 AM6/26/15
to cython-users
my rule of thumb is install conda from miniconda. Installing a bunch of stuff (numpy, cython, ...) will take less than 60 seconds :D


Hai 
 
Stefan

--

---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages