Open MrBook2019 opened 3 years ago
when i install apex , it failed : LINK : fatal error LNK1181: 无法打开输入文件“C:\Users\Book\AppData\Local\Temp\pip-req-build-l1fi33a9\build\temp.win-amd64-3.8\Release\csrc\flatten_unflatten.obj” error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe' failed with exit status 1181
anybody known how can i fix it?
Hi~Have you solved this problem? I met a same one:(
I met a same one.
vs2019+py37+ cuda11.1 was ok。 but,vs2019+py39+ cuda11.3 failed。
Same problem with CUDA 11.6, VS 2022 PY38 Seems a bug here - how can we fix this?
python 3.8.11 CUDA: V10.2.89 CUDNN: V8.2.1.32 pytorch: 1.9.0+cu102 GPU: GTX1650 Driver Version: 457.49
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./ D:\ProgramData\Anaconda3\envs\yolo\lib\site-packages\pip_internal\commands\install.py:229: UserWarning: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option. cmdoptions.check_install_build_global(options) Using pip 21.2.2 from D:\ProgramData\Anaconda3\envs\yolo\lib\site-packages\pip (python 3.8) Looking in indexes: https://pypi.douban.com/simple Processing d:\ailearn\python\book\yolox\apex DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default. pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555. Running command python setup.py egg_info
Skipping wheel build for apex, due to binaries being disabled for it. Installing collected packages: apex Running command 'D:\ProgramData\Anaconda3\envs\yolo\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Book\AppData\Local\Temp\pip-req-build-l1fi33a9\setup.py'"'"'; file='"'"'C:\Users\Book\AppData\Local\Temp\pip-req-build-l1fi33a9\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if 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'"'"'))' --cpp_ext --cuda_ext install --record 'C:\Users\Book\AppData\Local\Temp\pip-record-zh_dgdl2\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\ProgramData\Anaconda3\envs\yolo\Include\apex'
ERROR: Command errored out with exit status 1: 'D:\ProgramData\Anaconda3\envs\yolo\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Book\AppData\Local\Temp\pip-req-build-l1fi33a9\setup.py'"'"'; file='"'"'C:\Users\Book\AppData\Local\Temp\pip-req-build-l1fi33a9\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if 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'"'"'))' --cpp_ext --cuda_ext install --record 'C:\Users\Book\AppData\Local\Temp\pip-record-zh_dgdl2\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\ProgramData\Anaconda3\envs\yolo\Include\apex' Check the logs for full command output.