fast-neural-style
fast-neural-style copied to clipboard
train requirements.txt error 'ascii' codec can't decode byte 0xe2 in position 1178
was running pip install -r requirements.txt to train a new model, encountered this error:
In file included from numpy/core/src/npymath/halffloat.c:2:0:
numpy/core/include/numpy/halffloat.h:5:28: fatal error: numpy/npy_math.h: No such file or directory
compilation terminated.
_setup_distribution = dist = klass(attrs)
File "/home/cole/fast-neural-style/.env/local/lib/python2.7/site-packages/setuptools/dist.py", line 239, in init
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/home/cole/fast-neural-style/.env/local/lib/python2.7/site-packages/setuptools/dist.py", line 264, in fetch_build_eggs
replace_conflicting=True
File "/home/cole/fast-neural-style/.env/local/lib/python2.7/site-packages/pkg_resources.py", line 580, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/cole/fast-neural-style/.env/local/lib/python2.7/site-packages/pkg_resources.py", line 818, in best_match
return self.obtain(req, installer) # try and download/install
File "/home/cole/fast-neural-style/.env/local/lib/python2.7/site-packages/pkg_resources.py", line 830, in obtain
return installer(requirement)
File "/home/cole/fast-neural-style/.env/local/lib/python2.7/site-packages/setuptools/dist.py", line 314, in fetch_build_egg
return cmd.easy_install(req)
File "/home/cole/fast-neural-style/.env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 593, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/cole/fast-neural-style/.env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 623, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/cole/fast-neural-style/.env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 809, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/cole/fast-neural-style/.env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1015, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/cole/fast-neural-style/.env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1003, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: Command "x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/common -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-2.7/numpy/core/src/common -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -c build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.c -o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.o -MMD -MF build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.o.d" failed with exit status 1
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/cole/fast-neural-style/.env/build/h5py
Traceback (most recent call last):
File "/home/cole/fast-neural-style/.env/bin/pip", line 11, in