can anyone successfully "pip install nlg"?
i get the below picture when i do. also below are some excerpts from the error message.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for blis
× Encountered error while trying to install package.
╰─> preshed
i have tried from from windows 10 pc and my macbook. the picture above is from github codespace their default image.
expecting pip to successfully install the package nlg and not error out on the 'building dependencies...' stage
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for blis
Running setup.py clean for blis
Failed to build preshed thinc blis
Installing collected packages: wasabi, plac, cymem, wheel, tqdm, srsly, setuptools, preshed, numpy, murmurhash, Cython, blis, thinc
Running setup.py install for preshed: started
Running setup.py install for preshed: finished with status 'error'
error: subprocess-exited-with-error
× Running setup.py install for preshed did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
running install
running build
running build_py
running build_ext
building 'preshed.maps' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/python/3.10.4/include/python3.10 -I/usr/local/python/3.10.4/include/python3.10 -c preshed/maps.cpp -o build/temp.linux-x86_64-3.10/preshed/maps.o -O3 -Wno-strict-prototypes -Wno-unused-function
gcc: error: preshed/maps.cpp: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> preshed
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.
switching to python 3.7.4 from 3.10 did the trick
thanks @aab