'I am trying to run setup.py code in ubuntu terminal but it is giving me error

I am trying to run the setup.py in ubuntu terminal from https://github.com/uber-research/MARVIN

'''

import setuptools

with open("README.md", "r") as fh:
    long_description = fh.read()

setuptools.setup(
    name="marvin",
    version="0.0.1",
    author="Quinlan Sykora",
    author_email="[email protected]",
    description="The code for the multi-agent routing value iteration network",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/uber/MARVIN",
    packages=setuptools.find_packages(),
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: Uber Non-Commercial License",
        "Operating System :: OS Independent",
    ],
    python_requires='>=3.6',
    install_requires=["tqdm==4.36.1",
                      "torch==1.4.0",
                      "tensorboardX==1.9",
                      "numpy==1.18.1",
                      "cvxpy==1.1.0a1",
                      "scipy==1.4.1"],
    package_data={
        # If any package contains *.txt or *.rst files, include them:
        "": ["marvin/utils/optimized.so",
             "marvin/utils/LKH",
             "marvin/data/*.pkl"],
    },
)

'''

It is giving me these error:

no previously-included directories found matching 'benchmarks/env'
no previously-included directories found matching 'benchmarks/results'
no previously-included directories found matching 'benchmarks/html'
no previously-included directories found matching 'benchmarks/scipy'
no previously-included directories found matching 'scipy/special/tests/data/boost'
no previously-included directories found matching 'scipy/special/tests/data/gsl'
no previously-included directories found matching 'scipy/special/tests/data/local'
no previously-included directories found matching 'doc/build'
no previously-included directories found matching 'doc/source/generated'
warning: no previously-included files matching '
~' found anywhere in distribution
warning: no previously-included files matching '.bak' found anywhere in distribution
warning: no previously-included files matching '
.swp' found anywhere in distribution
warning: no previously-included files matching '.pyo' found anywhere in distribution warning: no previously-included files found matching 'LICENSES_bundled.txt'
CCompilerOpt.generate_dispatch_header[2245] : dispatch header dir build/src.linux- x86_64-3.9/numpy/distutils/include does not exist, creating it error: Setup script exited with error: Command "g++ -pthread -B /home/ashok/anaconda3/envs/my_env_marvin/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/ashok/anaconda3/envs/my_env_marvin/include -I/home/ashok/anaconda3/envs/my_env_marvin/include -fPIC -O2 -isystem /home/ashok/anaconda3/envs/my_env_marvin/include -fPIC -I/home/ashok/anaconda3/envs/my_env_marvin/lib/python3.9/site-packages/numpy/core/include -Ibuild/src.linux-x86_64-3.9/numpy/distutils/include -I/home/ashok/anaconda3/envs/my_env_marvin/include/python3.9 -c scipy/optimize/rectangular_lsap/rectangular_lsap.cpp -o build/temp.linux-x86_64-3.9/scipy/optimize/rectangular_lsap/rectangular_lsap.o -MMD -MF build/temp.linux-x86_64-3.9/scipy/optimize/rectangular_lsap/rectangular_lsap.o.d -msse -msse2 -msse3" failed with exit status 127



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source