'OSError: [WinError 1314] when installing fairseq
I am trying to install the fairseq version used for GENRE entity disambiguation. (https://github.com/nicola-decao/fairseq/tree/fixing_prefix_allowed_tokens_fn)
git clone https://github.com/pytorch/fairseq
cd fairseq
pip install --editable ./
However, upon attempting the final line (pip install editable ./), I receive the following error message:
(genre) C:\Users\work\fairseq>pip install --editable .
Obtaining file:///C:/Users/work/fairseq
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\work\anaconda3\envs\genre\python.exe' 'C:\Users\work\anaconda3\envs\genre\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' get_requires_for_build_wheel 'C:\Users\work\AppData\Local\Temp\tmpftnrzj5v'
cwd: C:\Users\work\fairseq
Complete output (16 lines):
Traceback (most recent call last):
File "C:\Users\work\anaconda3\envs\genre\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 349, in <module>
main()
File "C:\Users\work\anaconda3\envs\genre\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 331, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\work\anaconda3\envs\genre\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 117, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\work\AppData\Local\Temp\pip-build-env-wcgmittp\overlay\Lib\site-packages\setuptools\build_meta.py", line 177, in get_requires_for_build_wheel
return self._get_build_requires(
File "C:\Users\work\AppData\Local\Temp\pip-build-env-wcgmittp\overlay\Lib\site-packages\setuptools\build_meta.py", line 159, in _get_build_requires
self.run_setup()
File "C:\Users\work\AppData\Local\Temp\pip-build-env-wcgmittp\overlay\Lib\site-packages\setuptools\build_meta.py", line 174, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 250, in <module>
os.symlink(os.path.join("..", "examples"), fairseq_examples)
OSError: [WinError 1314] A required privilege is not held by the client: '..\\examples' -> 'fairseq\\examples'
----------------------------------------
WARNING: Discarding file:///C:/Users/work/fairseq. Command errored out with exit status 1: 'C:\Users\work\anaconda3\envs\genre\python.exe' 'C:\Users\work\anaconda3\envs\genre\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' get_requires_for_build_wheel 'C:\Users\work\AppData\Local\Temp\tmpftnrzj5v' Check the logs for full command output.
ERROR: Command errored out with exit status 1: 'C:\Users\work\anaconda3\envs\genre\python.exe' 'C:\Users\work\anaconda3\envs\genre\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' get_requires_for_build_wheel 'C:\Users\work\AppData\Local\Temp\tmpftnrzj5v' Check the logs for full command output.
I have tried running cmd as administrator, as well as ensuring the environment is activated (as seen in this thread cannot install fairseq using Anaconda?) yet I still receive the error.
Any ideas?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
