Open munael opened 3 years ago
I don't have a Windows machine to repro this on, but this SO answer says to either use a project environment (ex: conda or virtualenv) or run with administrator privileges
I have similar issue. I referred to @lematt1991 's answer, but it was not solved. In my case, there is a problem with the 10.2 and 10.1 versions and 10.0 is installed.
Using symlinks is generally not a cross-platform solution. I normally comment out the symlink lines in the setup.py
@munael @fspanda.
@lematt1991, I've created a simple pull request to show how this issue can be solved. I'm just starting to work with fairseq, so not sure if this patch is good enough. LMK
This seems like it should be on for the 10.3 milestone. Updating on Windows is currently broken :/ Only recourse (which I've yet to try) is to install from a clone of a fixed branch. But that'll just mess up updates later on...
Edit: Installing from conda (with -c conda-forge
) seems to work for now.
Hi everybody !!
This problem has solved. Try to run this pip install -v --no-cache-dir fairseq
Thanks
pip install -v --no-cache-dir fairseq
Although I no longer see the access denied error running this I cannot import fairseq in any python script, it says that no such module exists.
Hi @Lukecn1 Please try first in a fresh env.
@tanujdhiman - Note that this "works" by trying to install 0.10.2, 0.10.1, then 0.10.0. It fails on the first two.
@munael Is your issue resolved ?
@tanujdhiman It seems to reappear on 0.10.1
and 0.10.2
. 0.10.0
installs fine, but only after pip
tries the later patches first and fails with the same error.
pip install fairseq==0.10.0
pip install fairseq==0.10.0
Yep ! This is working on this cmd but doubt is why it doesn't work with other versions like 0.10.1
and 0.10.2
.
install fairseq and develop locally:
git clone https://github.com/pytorch/fairseq cd fairseq
activate venv(your env) pip install --editable .
git clone https://github.com/pytorch/fairseq cd fairseq
activate venv(your env) pip install --editable .
Is it working on all Operating Systems (Mac, Linux and specially Windows) ?
git clone https://github.com/pytorch/fairseq cd fairseq activate venv(your env) pip install --editable .
Is it working on all Operating Systems (Mac, Linux and specially Windows) ?
Yes, Tested on Windows 10 and Ubuntu 20.04
I don't have a Windows machine to repro this on, but this SO answer says to either use a project environment (ex: conda or virtualenv) or run with administrator privileges
Thanks ! I confirm running the following command on Windows 10 with Git bash started as administrator and in a conda env worked :
pip install . --use-feature=in-tree-build
This is still a relevant issue today.
🐛 Bug
pip install [-U [--force-reinstall]] fairseq
currently givesPermissionError: [WinError 5] Access is denied: 'fairseq\\examples'
. I have0.9
installed, and trying to install0.10
.To Reproduce
Steps to reproduce the behavior (always include the command you ran):
pip install -U fairseq
fairseq/examples
is under:Stack trace:
Log under
$HOME\AppData\Local\Temp\tmpprijkq_f
are inaccessible as the temp folder is auto deleted.Code sample
Expected behavior
Updates normally.
Environment
pip
, source): pipAdditional context