在 Pytorch 中下载预训练的 GAN 模型时出错:'memory' 找不到文件

Error while downloading pre-trained GAN model in Pytorch : 'memory' file not found

我正在按照 https://modelzoo.co/model/pytorch-cyclegan-and-pix2pix 中给出的步骤下载预训练模型。

这里给出了前 3 个命令:

git clone https://github.com/pytorch/vision
cd vision
**python setup.py install**

然而当我运行第三行时,我得到一个错误:

fatal error: 'memory' file not found

#include <memory>

error: command 'gcc' failed with exit status 1

如果有人知道如何克服这个错误,那将非常有帮助。

看到这个post。试试这条线

apt-get install build-essential