Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named _cffi_backend

I have Python 2.6 in my Linux rhel-5. I have installed pip and required CFFI packages. When I try to run a sample CFFI program:

ffi = FFI() 

it says:

File "/usr/lib/python2.6/site-packages/cffi/api.py", line 56, in __init__     import _cffi_backend as backend ImportError: No module named _cffi_backend 

What could be the possible error? Did I miss something during installation? I have installed pip, wheel, pycparser, pytest and cffi.

like image 306
Ash Avatar asked Dec 19 '15 12:12

Ash


1 Answers

For python2.x use following command:

python -m pip install cffi 

for python3.x

python3 -m pip install cffi 
like image 171
Bhavesh Odedra Avatar answered Sep 24 '22 01:09

Bhavesh Odedra