再一次安装anygrasp

1,anaconda

2,新建py3.6.2的环境

因为anygrasp 要求 pytorch 1.6 太老了,而且对应的cuda 都是cuda 11以下的版本

我是笔记本带3060,只能cuda11以上。

为了解决这个问题,感谢史驭舒大佬提供的思路

他复现用的环境是 pytorch 1.8.1 + cuda11.1

3,安装pytorch+cuda+cudnn

conda install pytorch=1.8.1=py3.6_cuda11.1_cudnn8.0.5_0  -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-64/

要是安装的不顺利就把清华源的地址都添加进去

成功安装的服务器的conda配置了一些国内的镜像,而报错的服务器是使用的原始镜像。问题可能找到;
在报错的服务器添加国内镜像
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/bioconda/
conda config --add channels http://mirrors.aliyun.com/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
 

还不行的话,把conda.rc中的https改成http

Anaconda conda 不能用,一直Solving enviroment 最后报错CondaHTTPError: HTTP 000 CONNECTION FAILED for url_conda转圈_Amberrr-L的博客-CSDN博客

4,git clone 项目

5,下载要求的包

1,
pip install -r requirements.txt
会很慢

再一次安装anygrasp_第1张图片

记住版本直接去指定清华源下载 


pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 库名

据个例子:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple  open3d==0.15.2

或者一步到位

pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/

6,cd pointnet2 python setup.py install 出错

再一次安装anygrasp_第2张图片

看看g++的版本

UOS软件包 build-essential 没有可安装候选_six66667的博客-CSDN博客

再一次安装anygrasp_第3张图片

但是还没解决,看下面这个

apt install报错,下列软件包有未满足的依赖关系_黄靖淞的博客-CSDN博客

再一次安装anygrasp_第4张图片

第一个方案不接受

第二个方案是降级的,这个要接受

再一次安装anygrasp_第5张图片

 解决

然后继续  python setup.py install

再一次安装anygrasp_第6张图片

成功了。 

下面是 knn文件夹下的   python setup.py install  成功的截图

再一次安装anygrasp_第7张图片

7,进入项目

去github 他们的项目中下载那两个 checkpoint

执行

CUDA_VISIBLE_DEVICES=0 python demo.py --checkpoint_path logs/log_rs/checkpoint-rs.tar
 

再一次安装anygrasp_第8张图片

 报错

libncursesw.so.5: cannot open shared object file: No such file or directory_syheliel的博客-CSDN博客

sudo apt-get install libncursesw5

 然后再运行demo 就行了

再一次安装anygrasp_第9张图片

 

 

你可能感兴趣的:(pytorch,linux,深度学习)