![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
涛O_O
这个作者很懒,什么都没留下…
展开
-
uwsgi启动报错:uwsgi: error while loading shared libraries: libpcre.so.1: cannot open shared object file
问题描述在启动uwsgi时,提示以下错误:uwsgi: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory意思是没找到libpcre.so.1文件可能是因为使用了anaconda,导致lib文件不在uwsgi的加载目录中导致的解决方案首先使用find / -name libpcre.so.1 命令,找到libpcre.so.1文原创 2022-05-03 01:22:51 · 2269 阅读 · 0 评论 -
failed to map segment from shared object: Cannot allocate memory
问题描述使用uwsgi运行flask网站,启功uwsgi失败,出现如下错误提示:Original error was: libopenblas64_p-r0-2f7c42d4.3.18.so: failed to map segment from shared object: Cannot allocate memory但是在本地之间运行网站的python文件却没有问题解决方案将uwsgi配置文件中的limit-as字段设置的大一些即可,如512、1024等uwsgi文档中对于limit-a原创 2022-03-25 10:40:01 · 3737 阅读 · 1 评论 -
构建含TensorFlow的树莓派docker镜像
Docker多架构构建设置参考:Leverage multi-CPU architecture support首先查看构建器builder:docker buildx ls如果在支持的架构里面看到没有arm架构的版本,则先运行:docker run --rm --privileged multiarch/qemu-user-static --reset -p yes然后创建自己的builder,并查看信息:docker buildx rm builderdocker buildx cre原创 2021-04-12 13:09:27 · 451 阅读 · 0 评论 -
使用pyinstaller打包遇到的几个问题
设置了icon图标的程序,打包后无法运行原始程序是一个GUI程序,使用iconbitmap('tmp.ico')设置了icon图标,本地运行正常,但打包后无法运行(报错)。解决方法是在程序执行时自动生成一个icon,然后用这个临时的icon文件作为GUI的图标。temp_icon = os.path.join(tempfile.gettempdir(), 'tmp.ico')with op...原创 2019-12-19 17:00:46 · 1035 阅读 · 0 评论