Open lshangguan opened 5 years ago
Same issue here, seems like anaconda installed cudatoolkit
does not contain nvcc
bin.
Anyone has a proper way to fix this?
Same issue here, seems like anaconda installed
cudatoolkit
does not containnvcc
bin. Anyone has a proper way to fix this?
I think I partially solve it. When you install apex, do this: python setup.py install instead of python setup.py install --cuda_ext --cpp_ext
D:\VS2015\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Anaconda3\envs\test\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib/x64" /LIBPATH:C:\Anaconda3\envs\test\libs /LIBPATH:C:\Anaconda3\envs\test\PCbuild\amd64 /LIBPATH:D:\VS2015\VC\LIB\amd64 /LIBPATH:D:\VS2015\VC\ATLMFC\LIB\amd64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" cudart.lib c10.lib caffe2.lib torch.lib torch_python.lib caffe2_gpu.lib _C.lib /EXPORT:PyInit_amp_C build\temp.win-amd64-3.7\Release\csrc/amp_C_frontend.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_scale_kernel.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_axpby_kernel.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_l2norm_kernel.obj /OUT:build\lib.win-amd64-3.7\amp_C.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.lib amp_C_frontend.obj : warning LNK4197: 多次指定导出“PyInit_amp_C”;使用第一个规范 正在创建库 build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.lib 和对象 build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.exp multi_tensor_scale_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) public: struct CUstreamst * cdecl c10::cuda::CUDAStream::stream(void)const " (imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@XZ) multi_tensor_axpby_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) public: struct CUstreamst * cdecl c10::cuda::CUDAStream::stream(void)const " (imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@XZ) multi_tensor_l2norm_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) public: struct CUstreamst * cdecl c10::cuda::CUDAStream::stream(void)const " (imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@XZ) multi_tensor_scale_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) class c10::cuda::CUDAStream cdecl c10::cuda::getCurrentCUDAStream(short)" (imp_?getCurrentCUDAStream@cuda@c10@@YA?AVCUDAStream@12@F@Z) multi_tensor_axpby_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) class c10::cuda::CUDAStream cdecl c10::cuda::getCurrentCUDAStream(short)" (imp_?getCurrentCUDAStream@cuda@c10@@YA?AVCUDAStream@12@F@Z) multi_tensor_l2norm_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) class c10::cuda::CUDAStream cdecl c10::cuda::getCurrentCUDAStream(short)" (imp_?getCurrentCUDAStream@cuda@c10@@YA?AVCUDAStream@12@F@Z) build\lib.win-amd64-3.7\amp_C.cp37-win_amd64.pyd : fatal error LNK1120: 2 个无法解析的外部命令 error: command 'D:\VS2015\VC\BIN\x86_amd64\link.exe' failed with exit status 1120
Same issue here, seems like anaconda installed
cudatoolkit
does not containnvcc
bin. Anyone has a proper way to fix this?I think I partially solve it. When you install apex, do this: python setup.py install instead of python setup.py install --cuda_ext --cpp_ext
Great, it solves my question
D:\VS2015\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Anaconda3\envs\test\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib/x64" /LIBPATH:C:\Anaconda3\envs\test\libs /LIBPATH:C:\Anaconda3\envs\test\PCbuild\amd64 /LIBPATH:D:\VS2015\VC\LIB\amd64 /LIBPATH:D:\VS2015\VC\ATLMFC\LIB\amd64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" cudart.lib c10.lib caffe2.lib torch.lib torch_python.lib caffe2_gpu.lib _C.lib /EXPORT:PyInit_amp_C build\temp.win-amd64-3.7\Release\csrc/amp_C_frontend.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_scale_kernel.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_axpby_kernel.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_l2norm_kernel.obj /OUT:build\lib.win-amd64-3.7\amp_C.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.lib amp_C_frontend.obj : warning LNK4197: 多次指定导出“PyInit_amp_C”;使用第一个规范 正在创建库 build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.lib 和对象 build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.exp multi_tensor_scale_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) public: struct CUstreamst * cdecl c10::cuda::CUDAStream::stream(void)const " (imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz) multi_tensor_axpby_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) public: struct CUstreamst * cdecl c10::cuda::CUDAStream::stream(void)const " (imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz) multi_tensor_l2norm_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) public: struct CUstreamst * cdecl c10::cuda::CUDAStream::stream(void)const " (imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz) multi_tensor_scale_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) class c10::cuda::CUDAStream cdecl c10::cuda::getCurrentCUDAStream(short)" (imp_?getCurrentCUDAStream@cuda@c10@@ya?AVCUDAStream@12@F@Z) multi_tensor_axpby_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) class c10::cuda::CUDAStream cdecl c10::cuda::getCurrentCUDAStream(short)" (imp_?getCurrentCUDAStream@cuda@c10@@ya?AVCUDAStream@12@F@Z) multi_tensor_l2norm_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) class c10::cuda::CUDAStream cdecl c10::cuda::getCurrentCUDAStream(short)" (imp_?getCurrentCUDAStream@cuda@c10@@ya?AVCUDAStream@12@F@Z) build\lib.win-amd64-3.7\amp_C.cp37-win_amd64.pyd : fatal error LNK1120: 2 个无法解析的外部命令 error: command 'D:\VS2015\VC\BIN\x86_amd64\link.exe' failed with exit status 1120
I found the same problems, I use vs2017,cuda 10. cudnn7.4.1 python3.6 pytorch1.0.1
@shanggdlk
I think I partially solve it. When you install apex, do this: python setup.py install instead of python setup.py install --cuda_ext --cpp_ext
Do you not lose CUDA support with this installation procedure?
@shanggdlk
I think I partially solve it. When you install apex, do this: python setup.py install instead of python setup.py install --cuda_ext --cpp_ext
Do you not lose CUDA support with this installation procedure?
Hi, I remember everything works fine with CUDA support.
D:\VS2015\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Anaconda3\envs\test\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib/x64" /LIBPATH:C:\Anaconda3\envs\test\libs /LIBPATH:C:\Anaconda3\envs\test\PCbuild\amd64 /LIBPATH:D:\VS2015\VC\LIB\amd64 /LIBPATH:D:\VS2015\VC\ATLMFC\LIB\amd64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" cudart.lib c10.lib caffe2.lib torch.lib torch_python.lib caffe2_gpu.lib _C.lib /EXPORT:PyInit_amp_C build\temp.win-amd64-3.7\Release\csrc/amp_C_frontend.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_scale_kernel.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_axpby_kernel.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_l2norm_kernel.obj /OUT:build\lib.win-amd64-3.7\amp_C.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.lib amp_C_frontend.obj : warning LNK4197: 多次指定导出“PyInit_amp_C”;使用第一个规范 正在创建库 build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.lib 和对象 build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.exp multi_tensor_scale_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) public: struct CUstreamst * cdecl c10::cuda::CUDAStream::stream(void)const " (imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz) multi_tensor_axpby_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) public: struct CUstreamst * cdecl c10::cuda::CUDAStream::stream(void)const " (imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz) multi_tensor_l2norm_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) public: struct CUstreamst * cdecl c10::cuda::CUDAStream::stream(void)const " (imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz) multi_tensor_scale_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) class c10::cuda::CUDAStream cdecl c10::cuda::getCurrentCUDAStream(short)" (imp_?getCurrentCUDAStream@cuda@c10@@YA?AVCUDAStream@12@F@Z) multi_tensor_axpby_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) class c10::cuda::CUDAStream cdecl c10::cuda::getCurrentCUDAStream(short)" (imp_?getCurrentCUDAStream@cuda@c10@@YA?AVCUDAStream@12@F@Z) multi_tensor_l2norm_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) class c10::cuda::CUDAStream cdecl c10::cuda::getCurrentCUDAStream(short)" (imp_?getCurrentCUDAStream@cuda@c10@@YA?AVCUDAStream@12@F@Z) build\lib.win-amd64-3.7\amp_C.cp37-win_amd64.pyd : fatal error LNK1120: 2 个无法解析的外部命令 error: command 'D:\VS2015\VC\BIN\x86_amd64\link.exe' failed with exit status 1120
I found the same problems, I use vs2017,cuda 10. cudnn7.4.1 python3.6 pytorch1.0.1
pytorch1.1.0
When you install apex, do this: python setup.py install or python setup.py install --cpp_ext instead of python setup.py install --cuda_ext --cpp_ext
------------------ 原始邮件 ------------------ 发件人: "brantl"notifications@github.com; 发送时间: 2019年10月18日(星期五) 中午1:36 收件人: "facebookresearch/maskrcnn-benchmark"maskrcnn-benchmark@noreply.github.com; 抄送: "。"1358420042@qq.com;"Comment"comment@noreply.github.com; 主题: Re: [facebookresearch/maskrcnn-benchmark] install apex error (#720)
D:\ VS2015 \ VC \ BIN \ x86_amd64 \ link.exe / nologo / INCREMENTAL:NO / LTCG / DLL / MANIFEST:EMBED,ID = 2 / MANIFESTUAC:NO / LIBPATH:C:\ Anaconda3 \ envs \ test \ lib \ site-packages \ torch \ lib“ / LIBPATH:C:\ Program Files \ NVIDIA GPU Computing Toolkit \ CUDA \ v10.1 \ lib / x64” / LIBPATH:C:\ Anaconda3 \ envs \ test \ libs / LIBPATH:C: \ Anaconda3 \ envs \ test \ PCbuild \ amd64 / LIBPATH:D:\ VS2015 \ VC \ LIB \ amd64 / LIBPATH:D:\ VS2015 \ VC \ ATLMFC \ LIB \ amd64“ / LIBPATH:C:\ Program Files(x86) \ Windows Kits \ 10 \ lib \ 10.0.17763.0 \ ucrt \ x64“” / LIBPATH:C:\ Program Files(x86)\ Windows Kits \ NETFXSDK \ 4.6.1 \ lib \ um \ x64“” / LIBPATH:C: \ Program Files(x86)\ Windows Kits \ 10 \ lib \ 10.0.17763.0 \ um \ x64“ cudart.lib c10.lib caffe2.lib torch.lib torch_python.lib caffe2_gpu.lib _C.lib / EXPORT:PyInit_amp_C build \ temp .win-amd64-3.7 \ Release \ csrc / amp_C_frontend.obj build \ temp.win-amd64-3。7 \ Release \ csrc / multi_tensor_scale_kernel.obj build \ temp.win-amd64-3.7 \ Release \ csrc / multi_tensor_axpby_kernel.obj build \ temp.win-amd64-3.7 \ Release \ csrc / multi_tensor_l2norm_kernel.obj / OUT:build \ lib。 win-amd64-3.7 \ amp_C.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.lib amp_C_frontend.obj:警告LNK4197:多次指定导入“ PyInit_amp_C”;使用第一个规范 正在创建库build \ temp.win-amd64-3.7 \ Release \ csrc \ amp_C.cp37-win_amd64.lib和对象build \ temp。 win-amd64-3.7 \ Release \ csrc \ amp_C.cp37-win_amd64.exp multi_tensor_scale_kernel.obj:错误LNK2001:无法解析的外部符号“ declspec(dllimport)public:struct CUstream_st * _cdecl c10 :: cuda :: CUDAStream :: stream (void)const“( imp?stream @ CUDAStream @ cuda @ c10 @ c10 @@ QEBAPEAUCUstream_st @ @xz) multi_tensor_axpby_kernel.obj:错误LNK2001:无法解析的外部符号” declspec(dllimport)public:struct CUstream_st _cdecl c10 :: cuda :: CUDAStream :: stream(void)const“( imp?stream @ CUDAStream @ cuda @ c10 @@ QEBAPEAUCUstream_st @ @xz) multi_tensor_l2norm_kernel.obj:错误LNK2001:无法解析的外部符号“ __declspec(dllimport)public:struct CUstream_st _cdecl c10 :: cuda :: CUDAStream :: stream(void)const”( imp?stream @ CUDAStream @ cuda @ c10 @ @ QEBAPEAUCUstream_st @ @xz) multi_tensor_scale_kernel.obj:错误LNK2001:无法解析的外部符号“ declspec(dllimport)class c10 :: cuda :: CUDAStream _cdecl c10 :: cuda :: getCurrentCUDAStream(short)”( imp?getCurrentCUDAStream @ cuda @ c10 @ @YA?AVCUDAStream @ 12 @ F @ Z) multi_tensor_axpby_kernel.obj:错误LNK2001:无法解析的外部符号“ declspec(dllimport)类c10 :: cuda :: CUDAStream _cdecl c10 :: cuda :: getCurrentCUDAStream(short) ”( imp?getCurrentCUDAStream @ cuda @ c10 @ @YA?AVCUDAStream @ 12 @ F @ Z) multi_tensor_l2norm_kernel.obj:错误LNK2001:无法解析的外部符号“ __declspec(dllimport)类c10 :: cuda :: CUDAStream _cdecl c10 :: cuda :: getCurrentCUDAStream(short)”( imp?getCurrentCUDAStream @ cuda @ c10 @ @YA吗? AVCUDAStream @ 12 @ F @ Z) build \ lib.win-amd64-3.7 \ amp_C.cp37-win_amd64.pyd:致命错误LNK1120:2个无法解析的外部命令 错误:命令'D:\ VS2015 \ VC \ BIN \ x86_amd64 \ link.exe'失败,退出状态为1120
我发现了同样的问题,我使用vs2017,cuda 10.cudnn7.4.1 python3.6 pytorch1.0.1
D:\VS2015\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Anaconda3\envs\test\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib/x64" /LIBPATH:C:\Anaconda3\envs\test\libs /LIBPATH:C:\Anaconda3\envs\test\PCbuild\amd64 /LIBPATH:D:\VS2015\VC\LIB\amd64 /LIBPATH:D:\VS2015\VC\ATLMFC\LIB\amd64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" cudart.lib c10.lib caffe2.lib torch.lib torch_python.lib caffe2_gpu.lib _C.lib /EXPORT:PyInit_amp_C build\temp.win-amd64-3.7\Release\csrc/amp_C_frontend.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_scale_kernel.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_axpby_kernel.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_l2norm_kernel.obj /OUT:build\lib.win-amd64-3.7\amp_C.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.lib amp_C_frontend.obj : warning LNK4197: 多次指定导出“PyInit_amp_C”;使用第一个规范 正在创建库 build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.lib 和对象 build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.exp multi_tensor_scale_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) public: struct CUstream_st * __cdecl c10::cuda::CUDAStream::stream(void)const " (_imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz) multi_tensor_axpby_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) public: struct CUstream_st __cdecl c10::cuda::CUDAStream::stream(void)const " (_imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz) multi_tensor_l2norm_kernel.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: struct CUstream_st __cdecl c10::cuda::CUDAStream::stream(void)const " (_imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz) multi_tensor_scale_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) class c10::cuda::CUDAStream cdecl c10::cuda::getCurrentCUDAStream(short)" (_imp?getCurrentCUDAStream@cuda@c10@@YA?AVCUDAStream@12@F@Z) multi_tensor_axpby_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) class c10::cuda::CUDAStream cdecl c10::cuda::getCurrentCUDAStream(short)" (_imp?getCurrentCUDAStream@cuda@c10@@YA?AVCUDAStream@12@F@Z) multi_tensor_l2norm_kernel.obj : error LNK2001: 无法解析的外部符号 "declspec(dllimport) class c10::cuda::CUDAStream cdecl c10::cuda::getCurrentCUDAStream(short)" (_imp?getCurrentCUDAStream@cuda@c10@@YA?AVCUDAStream@12@F@Z) build\lib.win-amd64-3.7\amp_C.cp37-win_amd64.pyd : fatal error LNK1120: 2 个无法解析的外部命令 error: command 'D:\VS2015\VC\BIN\x86_amd64\link.exe' failed with exit status 1120
I found the same problems, I use vs2017,cuda 10. cudnn7.4.1 python3.6 pytorch1.0.1
pytorch1.1.0
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
When I install apex, and type in python setup.py install --cuda_ext --cpp_ext. There is an error as follows:
File "setup.py", line 60, in raise RuntimeError("--cuda_ext was requested, but nvcc was not found.
I indeed follow the install instruction and install the cudatoolkit in my environment, as shown below:
Name Version Build Channel backcall 0.1.0 py37_0 blas 1.0 mkl ca-certificates 2019.1.23 0 certifi 2019.3.9 py37_0 cffi 1.12.3 py37h2e261b9_0 cudatoolkit 10.0.130 0
Can you point out how to fix that? Thanks.
I had exactly same problem but finally after hours of exploration I found the solution You need to follow two things: Step 1:
Run my shell sciript to install CUDA 10.0 without any issues. It also purges all other versions and ensures clean installation.
Step 2:
Then follow the steps
1.Open terminal
nano /home/$USER/.bashrc
2.Inside there add the following lines
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}$
export LD_LIBRARY_PATH=/usr/local/cuda10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
3.Save and close the editor
On you keyboard press the following:
ctrl + o --> save
enter or return key --> accept changes
ctrl + x --> close editor
source .bashrc
or close and open another terminal
nvcc --version
@shanggdlk
I ran into the same problem.
When I installed apex the way you told to , it worked.
But when I ran another program that used apex, it showed this problem: "AttributeError: 'NoneType' object has no attribute 'split'". It's exactly the same problem @Donglin-Wang met. It seems that you would lose CUDA support with this installation procedure. Could you offer another solution please?
Same issue here, seems like anaconda installed
cudatoolkit
does not containnvcc
bin. Anyone has a proper way to fix this?I think I partially solve it. When you install apex, do this: python setup.py install instead of python setup.py install --cuda_ext --cpp_ext
This solved it for me! I'm not even using this mask-rcnn repo... google just brought me here. First, I tried to install apex as specified on their github page:
git clone https://github.com/NVIDIA/apex
$ cd apex
$ pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
This lengthy pip install command failed. However, simply using python setup.py install
made it work.
When I install apex, and type in python setup.py install --cuda_ext --cpp_ext. There is an error as follows:
File "setup.py", line 60, in
raise RuntimeError("--cuda_ext was requested, but nvcc was not found.
I indeed follow the install instruction and install the cudatoolkit in my environment, as shown below:
Name Version Build Channel backcall 0.1.0 py37_0
blas 1.0 mkl
ca-certificates 2019.1.23 0
certifi 2019.3.9 py37_0
cffi 1.12.3 py37h2e261b9_0
cudatoolkit 10.0.130 0
Can you point out how to fix that? Thanks.