Jittor / jittor

Jittor is a high-performance deep learning framework based on JIT compiling and meta-operators.
https://cg.cs.tsinghua.edu.cn/jittor/
Apache License 2.0
3.08k stars 311 forks source link

Win11 相关Bug #275

Open tupig-7 opened 2 years ago

tupig-7 commented 2 years ago

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. 通过#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 commented 2 years ago

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