While installing from the commands under Readme of the code directory, the command "pip install --no-deps --editable fairseq-stack-transformer-v0.3.3" gives me error and I cannot understand how to resolve it. Here is a details of the error:
Obtaining file:///C:/Users/trina/PycharmProjects/amr/transition-amr-parser-master/fairseq-stack-transformer-v0.3.3
Installing collected packages: fairseq
Running setup.py develop for fairseq
ERROR: Command errored out with exit status 1:
command: 'C:\Users\trina\Anaconda3\envs\amr\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\trina\PycharmProj
ects\amr\transition-amr-parser-master\fairseq-stack-transformer-v0.3.3\setup.py'"'"'; file='"'"'C:\Users\trina\PycharmProjects\amr\transition-
amr-parser-master\fairseq-stack-transformer-v0.3.3\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else i
o.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"
'"'exec'"'"'))' develop --no-deps
cwd: C:\Users\trina\PycharmProjects\amr\transition-amr-parser-master\fairseq-stack-transformer-v0.3.3\
Complete output (13 lines):
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'
writing manifest file 'fairseq.egg-info\SOURCES.txt'
running build_ext
building 'fairseq.libbleu' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-t
ools/
ERROR: Command errored out with exit status 1: 'C:\Users\trina\Anaconda3\envs\amr\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '
"'"'C:\Users\trina\PycharmProjects\amr\transition-amr-parser-master\fairseq-stack-transformer-v0.3.3\setup.py'"'"'; file='"'"'C:\Users\trina\
PycharmProjects\amr\transition-amr-parser-master\fairseq-stack-transformer-v0.3.3\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) i
f os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close(
);exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
I have checked my Microsoft Visual C++ version as well.
If there is any help to fix this issue
While installing from the commands under Readme of the code directory, the command "pip install --no-deps --editable fairseq-stack-transformer-v0.3.3" gives me error and I cannot understand how to resolve it. Here is a details of the error:
Obtaining file:///C:/Users/trina/PycharmProjects/amr/transition-amr-parser-master/fairseq-stack-transformer-v0.3.3 Installing collected packages: fairseq Running setup.py develop for fairseq ERROR: Command errored out with exit status 1: command: 'C:\Users\trina\Anaconda3\envs\amr\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\trina\PycharmProj ects\amr\transition-amr-parser-master\fairseq-stack-transformer-v0.3.3\setup.py'"'"'; file='"'"'C:\Users\trina\PycharmProjects\amr\transition- amr-parser-master\fairseq-stack-transformer-v0.3.3\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else i o.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '" '"'exec'"'"'))' develop --no-deps cwd: C:\Users\trina\PycharmProjects\amr\transition-amr-parser-master\fairseq-stack-transformer-v0.3.3\ Complete output (13 lines): 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' writing manifest file 'fairseq.egg-info\SOURCES.txt' running build_ext building 'fairseq.libbleu' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-t ools/
ERROR: Command errored out with exit status 1: 'C:\Users\trina\Anaconda3\envs\amr\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = ' "'"'C:\Users\trina\PycharmProjects\amr\transition-amr-parser-master\fairseq-stack-transformer-v0.3.3\setup.py'"'"'; file='"'"'C:\Users\trina\ PycharmProjects\amr\transition-amr-parser-master\fairseq-stack-transformer-v0.3.3\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) i f os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close( );exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
I have checked my Microsoft Visual C++ version as well. If there is any help to fix this issue