Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject #210

Closed
temmmos opened this issue Oct 28, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@temmmos
Copy link

temmmos commented Oct 28, 2024

用源码安装启动后提示
QQ20241028-231413
根据相同问题已更改numpy==1.26.4未能解决

@Huanshere
Copy link
Owner

是否是源码安装 python=3.10.0 numpy==1.26.4 在哪一步产生的问题?

@temmmos
Copy link
Author

temmmos commented Oct 29, 2024

是否是源码安装 python=3.10.0 numpy==1.26.4 在哪一步产生的问题?

是源码安装的python=3.10.0
在最后一步输入命令streamlit run st.py启动的时候出现的问题,并且如果改用 一键启动.bat 来启动会出现错误

@Huanshere
Copy link
Owner

暂时没有见到有人复现,之前 2.0.0 版本会出现,更换到 1.26.4 就好了,能否重新安装再看看?

@Huanshere Huanshere added the bug Something isn't working label Oct 30, 2024
@hanco1
Copy link

hanco1 commented Oct 30, 2024

暂时没有见到有人复现,之前 2.0.0 版本会出现,更换到 1.26.4 就好了,能否重新安装再看看?

安装1.26.4np会报blis 1.0.1 requires numpy<3.0.0,>=2.0.0, but you have numpy 1.26.4 which is incompatible.
thinc 8.3.2 requires numpy<2.1.0,>=2.0.0; python_version >= "3.9", but you have numpy 1.26.4 which is incompatible.

@Huanshere
Copy link
Owner

请检查 python 版本是否 3.10.0,以及是什么系统呢?似乎是 nlp 会用到这个,请检查是否为spacy==3.7.6

@hanco1
Copy link

hanco1 commented Oct 30, 2024

请检查 python 版本是否 3.10.0,以及是什么系统呢?似乎是 nlp 会用到这个,请检查是否为spacy==3.7.6

解决了谢谢!安装了blis后重新安装np1.26.4然后再spacy3.7.6解决了

@Huanshere
Copy link
Owner

是否按照的 requirements 安装的?里面写了spacy==3.7.6,是不是安装过程报错了没管呀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants