data2text-entity踩坑记录

  1. CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    CUDA_cublas_device_LIBRARY (ADVANCED)
    解决方法一:
    更新cmake(安装最新版本并不一定有用),ubuntu地址:https://cmake.org/download/,并进行安装,参考:https://www.jianshu.com/p/379f89355dc4
    ~/.bashrc文件中添加:
export CMAKE_ROOT=安装地址
export PATH=$PATH:$CMAKE_ROOT/bin:

(不适配)cmake 3.8, ubuntu 18.04, cuda 10.0
(适配)cmake 3.5

2.could NOT find OpenSSL, try to set the path to OpenSSL root folder
解决方法:安装OpenSSL,参考:https://www.jianshu.com/p/578dc82b06cc

3.CMakeFiles/Makefile2:172: recipe for target 'lib/THC/CMakeFiles/THC.dir/all' failed
解决方法:安装torch

4.AttributeError: module 'torch' has no attribute 'float32'
解决方法:pip install torchtext==0.2.3

5.Unsupported gpu architecture 'compute_75'
解决方法:安装cuda10.0

6.Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
原因:cuda10.0与torch不匹配,参考:https://zhuanlan.zhihu.com/p/110261568

你可能感兴趣的:(data2text-entity踩坑记录)