Encounter 'Building wheel for cffi (setup.py) ... error' when trying to install the python library using pip3 install -r requirements.txt on Ubuntu 18.04
Requirement already satisfied: numpy in /FILEPATH/anaconda3/lib/python3.9/site-packages (from -r requirements.txt (line 1)) (1.20.3) Collecting cffi==1.11.5 Using cached cffi-1.11.5.tar.gz (438 kB) Requirement already satisfied: pycparser in /FILEPATH/anaconda3/lib/python3.9/site-packages (from cffi==1.11.5->-r requirements.txt (line 2)) (2.20) Building wheels for collected packages: cffi Building wheel for cffi (setup.py) ... error ............... Running setup.py clean for cffi Failed to build cffi Installing collected packages: cffi Attempting uninstall: cffi Found existing installation: cffi 1.14.2 Uninstalling cffi-1.14.2: Successfully uninstalled cffi-1.14.2 Running setup.py install for cffi ... error
I tried to install cffi seperately, it turns out both cffi ver1.11.5 and ver1.14.2 can be successfully installed.