Fairseq installation error in ubuntu 20.04 python3.8
praveencqr opened this issue · 1 comments
praveencqr commented
This is the error I get when I install the fairseq using the below command
pip install --editable ./
Running setup.py develop for fairseq
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
running develop
running egg_info
writing fairseq.egg-info/PKG-INFO
writing dependency_links to fairseq.egg-info/dependency_links.txt
writing entry points to fairseq.egg-info/entry_points.txt
writing requirements to fairseq.egg-info/requires.txt
writing top-level names to fairseq.egg-info/top_level.txt
reading manifest file 'fairseq.egg-info/SOURCES.txt'
adding license file 'LICENSE'
running build_ext
cythoning fairseq/data/data_utils_fast.pyx to fairseq/data/data_utils_fast.cpp
cythoning fairseq/data/token_block_utils_fast.pyx to fairseq/data/token_block_utils_fast.cpp
building 'fairseq.libbleu' extension
x86_64-linux-gnu-gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
compilation terminated.
/tmp/pip-build-env-geo_ny44/overlay/lib/python3.8/site-packages/setuptools/command/easy_install.py:160: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and rds-based tools.
warnings.warn(
/tmp/pip-build-env-geo_ny44/overlay/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standools.
warnings.warn(
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: No metadata found in /root/IndicTranslation/venv/lib/python3.8/site-packages
Rolling back uninstall of fairseq
Moving to /root/IndicTranslation/venv/bin/fairseq-eval-lm
from /tmp/pip-uninstall-x78vx6r1/fairseq-eval-lm
Moving to /root/IndicTranslation/venv/bin/fairseq-generate
from /tmp/pip-uninstall-x78vx6r1/fairseq-generate
Moving to /root/IndicTranslation/venv/bin/fairseq-interactive
from /tmp/pip-uninstall-x78vx6r1/fairseq-interactive
Moving to /root/IndicTranslation/venv/bin/fairseq-preprocess
from /tmp/pip-uninstall-x78vx6r1/fairseq-preprocess
Moving to /root/IndicTranslation/venv/bin/fairseq-score
from /tmp/pip-uninstall-x78vx6r1/fairseq-score
Moving to /root/IndicTranslation/venv/bin/fairseq-train
from /tmp/pip-uninstall-x78vx6r1/fairseq-train
Moving to /root/IndicTranslation/venv/bin/fairseq-validate
from /tmp/pip-uninstall-x78vx6r1/fairseq-validate
Moving to /root/IndicTranslation/venv/lib/python3.8/site-packages/fairseq-0.10.2.dist-info/
from /root/IndicTranslation/venv/lib/python3.8/site-packages/~airseq-0.10.2.dist-info
Moving to /root/IndicTranslation/venv/lib/python3.8/site-packages/fairseq/
from /root/IndicTranslation/venv/lib/python3.8/site-packages/~airseq
Moving to /root/IndicTranslation/venv/lib/python3.8/site-packages/fairseq_cli/
from /root/IndicTranslation/venv/lib/python3.8/site-packages/~airseq_cli
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
running develop
running egg_info
writing fairseq.egg-info/PKG-INFO
writing dependency_links to fairseq.egg-info/dependency_links.txt
writing entry points to fairseq.egg-info/entry_points.txt
writing requirements to fairseq.egg-info/requires.txt
writing top-level names to fairseq.egg-info/top_level.txt
reading manifest file 'fairseq.egg-info/SOURCES.txt'
adding license file 'LICENSE'
running build_ext
cythoning fairseq/data/data_utils_fast.pyx to fairseq/data/data_utils_fast.cpp
cythoning fairseq/data/token_block_utils_fast.pyx to fairseq/data/token_block_utils_fast.cpp
building 'fairseq.libbleu' extension
x86_64-linux-gnu-gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
compilation terminated.
/tmp/pip-build-env-geo_ny44/overlay/lib/python3.8/site-packages/setuptools/command/easy_install.py:160: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and othebased tools.
warnings.warn(
/tmp/pip-build-env-geo_ny44/overlay/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards.
warnings.warn(
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: You are using pip version 22.0.3; however, version 22.0.4 is available.
You should consider upgrading via the '/root/IndicTranslation/venv/bin/python -m pip install --upgrade pip' command.
gowtham1997 commented