I was following the steps given in https://modelzoo.co/model/pytorch-cyclegan-and-pix2pix to download a pre-trained model.
These where the first 3 commands given there :
git clone https://github.com/pytorch/vision
cd vision
**python setup.py install**
However when i ran the third line, i got an error :
fatal error: ‘memory’ file not found
#include <memory>
error: command ‘gcc’ failed with exit status 1
If anyone has some idea on how to overcome this error, it would be really helpful.
( I use a Mac OS, you can refer ptrblck’s answer if you use a Linux OS )
Thanks in advance !
Could you check, if your libstdc++ is properly installed?
You should find this file in /usr/include/c++/<version>/memory
.
In case you can’t find it, you might need to install it via:
apt-get install build-essential
I use a Mac OS, so this command doesn’t work for me !
I cant check the path too
Thanks a lot for your response !
Do you know the equivalent command for a Mac
Unfortunately, I’m not familiar with macOS and don’t know how these headers are installed.
A quick search seems to point to xcode
or brew
, but again I couldn’t decipher how it should work.
I will try to figure it out then
Thanks a lot, really appreciate it