Unable to install apex in windows.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 9k
- Forks
- 1.5k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 3
Description
Hi, NVIDA RD,I have read some related issues but cannot solve my problem.could u help me?
CMD using 'pip3 install -v --global-option="--cpp_ext" --global-option="--cuda_ext" ./'
environment:CUDA9.2 ,torch1.3-cu92
error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2
\bin\nvcc.exe' failed with exit status 2
Running setup.py install for apex ... error
Cleaning up...
Removing source in C:\Users\CS165\AppData\Local\Temp\pip-req-build-o8wynigr
Removed build tracker 'C:\Users\CS165\AppData\Local\Temp\pip-req-tracker-9
dl465j'
ERROR: Command "'e:\python36\python3.exe' -u -c 'import setuptools, tokenize;f
ile='"'"'C:\Users\CS165\AppData\Local\Temp\pip-req-build-o8wynigr\setup
.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().repla
ce('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exe
c'"'"'))' --cpp_ext --cuda_ext install --record 'C:\Users\CS165\AppData\Local\Te
mp\pip-record-wjxd4itq\install-record.txt' --single-version-externally-managed -
-compile" failed with error code 1 in C:\Users\CS165\AppData\Local\Temp\pip-req-
build-o8wynigr
Exception information:
Traceback (most recent call last):
File "e:\python36\lib\site-packages\pip_internal\cli\base_command.py", line 1
78, in main
status = self.run(options, args)
File "e:\python36\lib\site-packages\pip_internal\commands\install.py", line 4
14, in run
use_user_site=options.use_user_site,
File "e:\python36\lib\site-packages\pip_internal\req_init.py", line 58, i
n install_given_reqs
**kwargs
File "e:\python36\lib\site-packages\pip_internal\req\req_install.py", line 95
1, in install
spinner=spinner,
File "e:\python36\lib\site-packages\pip_internal\utils\misc.py", line 776, in
call_subprocess
% (command_desc, proc.returncode, cwd))
pip._internal.exceptions.InstallationError: Command "'e:\python36\python3.exe' -
u -c 'import setuptools, tokenize;file='"'"'C:\Users\CS165\AppData\Local
\Temp\pip-req-build-o8wynigr\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"'
, open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();
exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --re
cord 'C:\Users\CS165\AppData\Local\Temp\pip-record-wjxd4itq\install-record.txt'
--single-version-externally-managed --compile" failed with error code 1 in C:\Us
ers\CS165\AppData\Local\Temp\pip-req-build-o8wynigr\
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with setup.py and reproduce the Windows command using the reported Python, CUDA 9.2, and PyTorch versions. Inspect the nvcc output behind exit status 2; done means identifying a project-side cause and confirming that the requested Apex extensions install successfully on the reported setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100