pip install conan //安装
conan remote add conan_server http://conan.dg-atlas.com:9300 //设置远程地址
conan search xxx/* -r=conan_server //查询远程库
/root/.conan/data/ //本地库存放路径
conan install cuda/8.0.61@xxx/stable_ubuntu1404 --build cuda //下载库文件
conan export . xxx/stable_cuda8.0_cudnn7.0 //创建本地库
conan upload ReID/0.7.4@xxx/stable_cuda8.0_cudnn7.0 --all -r conan_server //上传本地库到远程
安装出错
pip后发生 ImportError: cannot import name ‘main’
cd /usr/bin && vi pip
sys.exit(main()) 改到 sys.exit(main.main())
上传格式
conanfile.py
from conans import ConanFile, CMake
class Mxnet(ConanFile):
name = "Brpc" #name
version = "1.0.0" #version
settings = "os", "compiler", "build_type", "arch"
exports = "*"
def package(self):
self.copy("*", dst="include", src="include")
self.copy("*", dst="lib", src="lib")
def package_info(self):
self.cpp_info.libs = ["Brpc"]