ubuntu 16.04 pytorch
来源:2-4 环境配置(2)

it_wont_stop
2022-10-03
Traceback (most recent call last):
File “”, line 1, in
File “/home/huke/.local/lib/python3.7/site-packages/torch/init.py”, line 877, in
from torch import profiler as profiler
File “/home/huke/.local/lib/python3.7/site-packages/torch/profiler/init.py”, line 11, in
from .profiler import profile, _KinetoProfile,
File “/home/huke/.local/lib/python3.7/site-packages/torch/profiler/profiler.py”, line 1, in
import gzip
File “/usr/local/lib/python3.7/gzip.py”, line 9, in
import zlib
ModuleNotFoundError: No module named ‘zlib’
写回答
1回答
-
it_wont_stop
提问者
2022-10-03
Ubuntu 16.4 安装完pytorch后尝试import torch,报zlib错误00
相似问题