Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install with pip (Exit code 2) #5419

Closed
DexoXeck opened this issue Jan 10, 2024 · 1 comment
Closed

Failed to install with pip (Exit code 2) #5419

DexoXeck opened this issue Jan 10, 2024 · 1 comment

Comments

@DexoXeck
Copy link

Python 3.9.0 refuses to install fairseq, both editable and regular pip.

error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

I have tried to use pip and installing it editable, and neither options are viable. I have both VSBT 2022 and VSC 2022 with .NET building tools and C++ desktop environment.

What's your environment?

  • fairseq Version (e.g., 1.0 or main): 0.12.2
  • PyTorch Version (e.g., 1.0): 2.1.2
  • OS (e.g., Linux): Windows 10
  • How you installed fairseq (pip, source): pip
  • Build command you used (if compiling from source):
  • Python version: 3.9.0
  • CUDA/cuDNN version: CUDA 12.3.0
  • GPU models and configuration:
  • Any other relevant information: cl.exe is a file that exists, so I don't know what I'm doing wrong.
@DexoXeck DexoXeck changed the title Failed to install pip Failed to install with pip Jan 10, 2024
@DexoXeck DexoXeck changed the title Failed to install with pip Failed to install with pip (Exit code 2) Jan 10, 2024
@DexoXeck
Copy link
Author

My enviormental settings were all screwed up. Added back chcp, powershell and cmd and it worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant