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

Win11 相关Bug #275

Open
tupig-7 opened this issue Oct 29, 2021 · 1 comment
Open

Win11 相关Bug #275

tupig-7 opened this issue Oct 29, 2021 · 1 comment

Comments

@tupig-7
Copy link
Contributor

tupig-7 commented Oct 29, 2021

Describe the bug

系统:win11
环境:python3.9
框架:jittor:1.3.1.15

1.根据官网执行命令,出现error C2065: 'M_PI': undeclared identifier报错

python -m pip install jittor # 这一步成功执行
python -m jittor.test.test_core # 这一步会报告 error C2065: 'M_PI': undeclared identifier

当然运行如下测试代码依旧会报上述错误

import jittor as jt
a = jt.float32([1,2,3])
print (a)
print (a.data)
  1. 通过fix one bug in win11 jittor\src\misc\cpu_math.cc(47): error C2065: 'M… #274 修复该问题
  2. 之后继续执行上述安装命令:会出现RuntimeError: [f 1030 00:32:43.080000 64 py_obj_holder.h:36] numpy is not installed
    通过numpy降级解决,请勿安装最新版本numpy==1.21.3,降级为1.20.3解决该问题,实测1.21.2也行。
  3. 继续执行上述安装命令:出现ImportError: cannot import name 'imaging' from 'PIL' (E:\anaconda3\envs\jittor\lib\site-packages\PIL_init.py),通过Pillow降级解决,请勿安装最新版本Pillow==8.4.0,降级为8.3.2解决。
  4. 安装成功,测试代码运行成功。
  5. 晚安,熬不住了。

Full Log

1
2
3

@Jittor
Copy link
Owner

Jittor commented Nov 4, 2021

谢谢您的反馈,我们在最新版本1.3.1.18修复了该问题,您可以通过python -m pip install jittor -U更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants