python setup.py build develop
您好,感谢分享code。我在安装你的环境是出现了以下错误,如有时间希望你能提供帮助,万分感谢。 我的环境是:Python 3.8.13 pip 包: Package Version
brotlipy 0.7.0 certifi 2022.5.18.1 cffi 1.15.0 charset-normalizer 2.0.4 cryptography 37.0.1 idna 3.3 mkl-fft 1.3.1 mkl-random 1.2.2 mkl-service 2.4.0 numpy 1.22.3 Pillow 9.0.1 pip 21.2.4 pycparser 2.21 pyOpenSSL 22.0.0 PySocks 1.7.1 requests 2.27.1 setuptools 61.2.0 six 1.16.0 terminaltables 3.1.0 torch 1.8.0 torchvision 0.9.0 typing_extensions 4.1.1 urllib3 1.26.9 wheel 0.37.1
nvcc -V; nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2019 NVIDIA Corporation Built on Wed_Apr_24_19:10:27_PDT_2019 Cuda compilation tools, release 10.1, V10.1.168
/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/clrnet
copying clrnet/init.py -> build/lib.linux-x86_64-3.8/clrnet
creating build/lib.linux-x86_64-3.8/clrnet/utils
copying clrnet/utils/tusimple_metric.py -> build/lib.linux-x86_64-3.8/clrnet/utils
copying clrnet/utils/init.py -> build/lib.linux-x86_64-3.8/clrnet/utils
copying clrnet/utils/config.py -> build/lib.linux-x86_64-3.8/clrnet/utils
copying clrnet/utils/net_utils.py -> build/lib.linux-x86_64-3.8/clrnet/utils
copying clrnet/utils/logger.py -> build/lib.linux-x86_64-3.8/clrnet/utils
copying clrnet/utils/recorder.py -> build/lib.linux-x86_64-3.8/clrnet/utils
copying clrnet/utils/visualization.py -> build/lib.linux-x86_64-3.8/clrnet/utils
copying clrnet/utils/lane.py -> build/lib.linux-x86_64-3.8/clrnet/utils
copying clrnet/utils/registry.py -> build/lib.linux-x86_64-3.8/clrnet/utils
copying clrnet/utils/llamas_metric.py -> build/lib.linux-x86_64-3.8/clrnet/utils
copying clrnet/utils/llamas_utils.py -> build/lib.linux-x86_64-3.8/clrnet/utils
copying clrnet/utils/culane_metric.py -> build/lib.linux-x86_64-3.8/clrnet/utils
creating build/lib.linux-x86_64-3.8/clrnet/models
copying clrnet/models/init.py -> build/lib.linux-x86_64-3.8/clrnet/models
copying clrnet/models/registry.py -> build/lib.linux-x86_64-3.8/clrnet/models
creating build/lib.linux-x86_64-3.8/clrnet/datasets
copying clrnet/datasets/tusimple.py -> build/lib.linux-x86_64-3.8/clrnet/datasets
copying clrnet/datasets/init.py -> build/lib.linux-x86_64-3.8/clrnet/datasets
copying clrnet/datasets/llamas.py -> build/lib.linux-x86_64-3.8/clrnet/datasets
copying clrnet/datasets/culane.py -> build/lib.linux-x86_64-3.8/clrnet/datasets
copying clrnet/datasets/registry.py -> build/lib.linux-x86_64-3.8/clrnet/datasets
copying clrnet/datasets/base_dataset.py -> build/lib.linux-x86_64-3.8/clrnet/datasets
creating build/lib.linux-x86_64-3.8/clrnet/engine
copying clrnet/engine/scheduler.py -> build/lib.linux-x86_64-3.8/clrnet/engine
copying clrnet/engine/init.py -> build/lib.linux-x86_64-3.8/clrnet/engine
copying clrnet/engine/optimizer.py -> build/lib.linux-x86_64-3.8/clrnet/engine
copying clrnet/engine/runner.py -> build/lib.linux-x86_64-3.8/clrnet/engine
copying clrnet/engine/registry.py -> build/lib.linux-x86_64-3.8/clrnet/engine
creating build/lib.linux-x86_64-3.8/clrnet/ops
copying clrnet/ops/init.py -> build/lib.linux-x86_64-3.8/clrnet/ops
copying clrnet/ops/nms.py -> build/lib.linux-x86_64-3.8/clrnet/ops
creating build/lib.linux-x86_64-3.8/clrnet/models/necks
copying clrnet/models/necks/init.py -> build/lib.linux-x86_64-3.8/clrnet/models/necks
copying clrnet/models/necks/fpn.py -> build/lib.linux-x86_64-3.8/clrnet/models/necks
copying clrnet/models/necks/pafpn.py -> build/lib.linux-x86_64-3.8/clrnet/models/necks
creating build/lib.linux-x86_64-3.8/clrnet/models/utils
copying clrnet/models/utils/init.py -> build/lib.linux-x86_64-3.8/clrnet/models/utils
copying clrnet/models/utils/roi_gather.py -> build/lib.linux-x86_64-3.8/clrnet/models/utils
copying clrnet/models/utils/dynamic_assign.py -> build/lib.linux-x86_64-3.8/clrnet/models/utils
copying clrnet/models/utils/seg_decoder.py -> build/lib.linux-x86_64-3.8/clrnet/models/utils
creating build/lib.linux-x86_64-3.8/clrnet/models/nets
copying clrnet/models/nets/init.py -> build/lib.linux-x86_64-3.8/clrnet/models/nets
copying clrnet/models/nets/detector.py -> build/lib.linux-x86_64-3.8/clrnet/models/nets
creating build/lib.linux-x86_64-3.8/clrnet/models/backbones
copying clrnet/models/backbones/resnet.py -> build/lib.linux-x86_64-3.8/clrnet/models/backbones
copying clrnet/models/backbones/init.py -> build/lib.linux-x86_64-3.8/clrnet/models/backbones
copying clrnet/models/backbones/dla34.py -> build/lib.linux-x86_64-3.8/clrnet/models/backbones
creating build/lib.linux-x86_64-3.8/clrnet/models/heads
copying clrnet/models/heads/init.py -> build/lib.linux-x86_64-3.8/clrnet/models/heads
copying clrnet/models/heads/clr_head.py -> build/lib.linux-x86_64-3.8/clrnet/models/heads
creating build/lib.linux-x86_64-3.8/clrnet/models/losses
copying clrnet/models/losses/init.py -> build/lib.linux-x86_64-3.8/clrnet/models/losses
copying clrnet/models/losses/accuracy.py -> build/lib.linux-x86_64-3.8/clrnet/models/losses
copying clrnet/models/losses/lineiou_loss.py -> build/lib.linux-x86_64-3.8/clrnet/models/losses
copying clrnet/models/losses/focal_loss.py -> build/lib.linux-x86_64-3.8/clrnet/models/losses
creating build/lib.linux-x86_64-3.8/clrnet/datasets/process
copying clrnet/datasets/process/init.py -> build/lib.linux-x86_64-3.8/clrnet/datasets/process
copying clrnet/datasets/process/generate_lane_line.py -> build/lib.linux-x86_64-3.8/clrnet/datasets/process
copying clrnet/datasets/process/process.py -> build/lib.linux-x86_64-3.8/clrnet/datasets/process
copying clrnet/datasets/process/transforms.py -> build/lib.linux-x86_64-3.8/clrnet/datasets/process
running egg_info
creating clrnet.egg-info
writing clrnet.egg-info/PKG-INFO
writing dependency_links to clrnet.egg-info/dependency_links.txt
writing requirements to clrnet.egg-info/requires.txt
writing top-level names to clrnet.egg-info/top_level.txt
writing manifest file 'clrnet.egg-info/SOURCES.txt'
/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/utils/cpp_extension.py:369: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
reading manifest file 'clrnet.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'clrnet.egg-info/SOURCES.txt'
running build_ext
building 'clrnet.ops.nms_impl' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/clrnet
creating build/temp.linux-x86_64-3.8/clrnet/ops
creating build/temp.linux-x86_64-3.8/clrnet/ops/csrc
gcc -pthread -B /home/qzy/anaconda3/envs/clrnet/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include -I/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/TH -I/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/THC -I/home/qzy/anaconda3/envs/clrnet/include/python3.8 -c ./clrnet/ops/csrc/nms.cpp -o build/temp.linux-x86_64-3.8/./clrnet/ops/csrc/nms.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -DTORCH_EXTENSION_NAME=nms_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:140:0,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from ./clrnet/ops/csrc/nms.cpp:30:
/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:83:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
#pragma omp parallel for if ((end - begin) >= grain_size)
^
In file included from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/c10/core/Device.h:5:0,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from ./clrnet/ops/csrc/nms.cpp:30:
./clrnet/ops/csrc/nms.cpp: In function ‘std::vectorat::Tensor nms_forward(at::Tensor, at::Tensor, float, long unsigned int)’:
./clrnet/ops/csrc/nms.cpp:40:41: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor")
^
/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:225:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
#define C10_EXPAND_MSVC_WORKAROUND(x) x
^
/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:244:34: note: in expansion of macro ‘C10_UNLIKELY’
#define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
^
/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:291:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
if (C10_UNLIKELY_OR_CONST(!(cond))) {
^
/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:484:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
^
./clrnet/ops/csrc/nms.cpp:40:23: note: in expansion of macro ‘AT_ASSERTM’
#define CHECK_CUDA(x) AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor")
^
./clrnet/ops/csrc/nms.cpp:42:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^
./clrnet/ops/csrc/nms.cpp:53:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(boxes);
^
In file included from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from ./clrnet/ops/csrc/nms.cpp:30:
/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^
In file included from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/c10/core/Device.h:5:0,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from ./clrnet/ops/csrc/nms.cpp:30:
./clrnet/ops/csrc/nms.cpp:40:41: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor")
^
/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:225:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
#define C10_EXPAND_MSVC_WORKAROUND(x) x
^
/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:244:34: note: in expansion of macro ‘C10_UNLIKELY’
#define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
^
/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:291:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
if (C10_UNLIKELY_OR_CONST(!(cond))) {
^
/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:484:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
^
./clrnet/ops/csrc/nms.cpp:40:23: note: in expansion of macro ‘AT_ASSERTM’
#define CHECK_CUDA(x) AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor")
^
./clrnet/ops/csrc/nms.cpp:42:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^
./clrnet/ops/csrc/nms.cpp:54:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(idx);
^
In file included from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from ./clrnet/ops/csrc/nms.cpp:30:
/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^
/usr/bin/nvcc -I/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include -I/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/TH -I/home/qzy/anaconda3/envs/clrnet/lib/python3.8/site-packages/torch/include/THC -I/home/qzy/anaconda3/envs/clrnet/include/python3.8 -c ./clrnet/ops/csrc/nms_kernel.cu -o build/temp.linux-x86_64-3.8/./clrnet/ops/csrc/nms_kernel.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS_ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=nms_impl -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 -std=c++14
nvcc fatal : Path to libdevice library not specified
error: command '/usr/bin/nvcc' failed with exit code 1
我把setup.py中的: ext_modules=get_extensions(),注释掉不会报错。