安装PyMuPDF时报错:无法打开包括文件: “fitz.h”: No such file or directory

错误描述 安装 pip install fitz 时候, 报错:ModuleNotFoundError: No module named ‘frontend’ 转而安装 pip install PyMuPDF 报错: fitz/fitz_wrap.c(2755): fatal error C1083: 无法打开包括文件: “fitz.h”: No such file or directory 错误分析 python3.6版本会出现这一问题 解决方案 如果将python升级版本最好(我换成3.9后没有错误),若不能,那么: Windows 降PyMuPDF版本 pip install PyMuPDF==1.16.14 或者 pip install -i https://mirrors.aliyun.com/pypi/simple/ pymupdf==1.18.0 MacOS brew install mupdf swig freetype pip install https://github.com/pymupdf/PyMuPDF/archive/master.tar.gz

note: This error originates from a subprocess, and is likely not a problem with pip.

问题描述 在从下载好的包中,执行命令: pip install -e . 报错 Looking in indexes: http://mirrors.aliyun.com/pypi/simple Obtaining file:///F:/GNN_Fuse/KEMPNN-main Installing build dependencies … done Checking if build backend supports build_editable … done Getting requirements to build wheel … error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [14 lines of output] error: Multiple top-level packages discovered in a flat-layout: ['kempnn', 'd...

RuntimeError: Output 0 of PermuteBackward0 is a view and is being modified inplace

报错 RuntimeError: Output 0 of PermuteBackward0 is a view and is being modified inplace. This view is the output of a function that returns multiple views. Such functions do not allow the output views to be modified inplace. You should replace the inplace operation by an out-of-place one. 解决方法 Roll back pytorch to 1.6.0 and it runs normally. 我将pytorch回退到1.5.0,实测可用。 参考 https://github.com/shenweichen/DeepCTR-Torch/issues/130

Socket error Event: 32 Error: 10053.|bug

问题描述 ssh链接服务器时Connection established,但是Socket error Event: 32 Error: 10053. 解决方法 造成的原因很多,以下是可能的解决方法 用户端 ssh的端口被防火墙保护了,把360(杀毒)关了就好了 服务器端 UseDNS vim /etc/ssh/sshd_config 将UseDNS 设置为no Ip地址冲突导致 vim /etc/sysconfig/network-scripts/ifcfg-eth0 配置一下静态ip IPADDR= ## 分配的静态地址,与主机同网段 GATEWAY= ## 网关 NETMASK= ## 子网掩码 ssh配置文件权限不对 cd /etc/ssh chmod 0644 * 更改配置文件后记得重启服务 service sshd restart service network restart /etc/ssh下面没有sshd_config.ucf-dist ssh_host_ecdsa_key ssh_host_ecdsa_key.pub ssh_...