简体   繁体   中英

Flask server cannot start due to the lack of libgcc

I have created flask server for my app, which I want to run on raspbian, on raspberry pi. When trying to start with flask run I've got info that libgcc_s.so.1 must be installed for pthread_cancel to work Aborted. It looks like server has been started, but just after that it has been immediately stopped.

Tryed already to install libgcc-8-dev via apt-get install but no success.

Also found that library can be downloaded from here: https://packages.debian.org/cgi-bin/search_contents.pl?word=libgcc_s.so.1&searchmode=searchfiles&case=insensitive&version=stable&arch=i386

but I have no idea which one should I pick and how to install it properly (where to place it and how to link it)?

在此处输入图片说明

If you using something like openCV, then try to find out its headless version.

For me that problem was coming due to openCV. Then I install its headless version and it works fine.

Example :- sudo pip3 install opencv-python-headless

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM