Failed to install the requirements on Ubuntu by PIP
Kipsora opened this issue · 2 comments
Kipsora commented
I tried to install the requirements by pip -r on my classmate's computer which OS is Ubuntu 16.04 LTS. But the pip gave me the following error:
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/Modules/2.x/readline.o readline/libreadline.a readline/libhistory.a -lncurses -o build/lib.linux-x86_64-2.7/gnureadline.so
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1I tried to install the libncurses package by the following command:
sudo apt install libncurses5-devIt works! But after that it fails again with different error:
ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, abortingAnd after I install the package libjpeg by:
sudo apt install libjpeg-dev
...
After I struggle for a while and googling, I found these following commands are necessary, so please add these commands to the README file before installing the python requirements:
sudo apt install pkg-config
sudo apt install libncurses5-dev
sudo apt install libjpeg-dev
sudo apt install libfreetype6-dev
sudo apt install blt-devfangbohui commented
Bravo! Save my day.
caodi0207 commented
Thanks for your contribution.