当前位置:网站首页>[环境配置]PWC-Net
[环境配置]PWC-Net
2022-06-29 11:50:00 【感天动地大白狗】
本文按照源代码github的PyTorch/README.md中说明的步骤配置,碰到bug解决bug
环境创建
conda create -n pwcnet_test python=2.7 anaconda // python2.7 conda环境创建
conda activate pwcnet_test // 进入python环境
pytorch和其他依赖下载
由于之前配置过一次但是torch0.2不能使用,下载torch0.4
pip install torch==0.4.1 torchvision==0.2.2 -f https://download.pytorch.org/whl/torch_stable.html
pip install torchvision visdom dominate opencv-python cffi
安装opencv-python的时候可能会报错:
ERROR: Command errored out with exit status 1: /home/hongfeng/anaconda3/envs/pwcnet_test/bin/python /home/hongfeng/anaconda3/envs/pwcnet_test/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpuP82ch Check the logs for full command output.
这是因为python2.7不再支持安装opencv-python,可以自行下载安装:
①前往下载地址找到对应的版本下载;
②在虚拟环境下使用如下命令安装
pip install opencv_python-3.1.0.5-cp27-cp27mu-manylinux1_x86_64.whl
安装cffi时可能会报错:
raise TypeError, “dist must be a Distribution instance”
TypeError: dist must be a Distribution instance
使用如下命令安装即可:
pip install certifi --ignore-installed
install external packages
最后前往对应文件夹执行如下命令
cd external_packages/correlation-pytorch-master/
bash make_cuda.sh
cd ../../
此处碰到了纠缠我许久的问题:
TypeError: dist must be a Distribution instance
网上搜了许多解决方法:
自己觉得:可能是没安装cuda
①
②steuptool的版本问题(并没有解决我的问题)
解决方法为更换较低版本的setuptools,再虚拟环境中运行如下命令
wget https://pypi.python.org/packages/source/s/setuptools/setuptools-0.9.8.tar.gz
tar zxvf setuptools-0.9.8.tar.gz
cd setuptools-0.9.8/
sudo python setup.py install
cd
sudo easy_install pip
sudo aptitude install libffi-dev
git clone [email protected].com:openstack/swift.git
cd swift/
sudo python setup.py install
在swift中运行最后一行命令的时候报了错:
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse(‘pbr’)
这个简单pip install pbr即可,来源于github issue
…
pytorch版本行不通,我放弃了朋友们
边栏推荐
- Go Senior Engineer required course | I sincerely suggest you listen to it. Don't miss it~
- Method area of JVM
- Li Kou daily question - day 31 -1779 Find the nearest point with the same X or Y coordinate
- ShanDong Multi-University Training #3
- Understanding of P value
- Gbase 8s extended external connection 1
- NvtBack
- Sofaregistry source code | data synchronization module analysis
- Interview shock 61: tell me about MySQL transaction isolation level?
- Gbase8s database into table clause
猜你喜欢

Cache consistency, delete cache, write cache, cache breakdown, cache penetration, cache avalanche

Wang Yingqi, founder of ones, talks to fortune (Chinese version): is there any excellent software in China?

论文复现——AC-FPN:Attention-guided Context Feature Pyramid Network for Object Detection.

Murphy safety was selected for signing 24 key projects of Zhongguancun Science City

How can colleges and universities build future oriented smart campus based on cloud native? Full stack cloud native architecture vs traditional IT architecture

架构实战营第五模块课后作业

How to install oracle19c in Centos8

ERP编制物料清单 基础

bison使用error死循环的记录

模糊图片变清晰,一键双色图片,快速整理本地图片...这8个在线图片工具申请加入你的收藏夹!
随机推荐
Set operator of gbase8s database in combined query
论文复现——AC-FPN:Attention-guided Context Feature Pyramid Network for Object Detection.
MySQL主从同步之 异步复制 半同步复制 全同步复制
What is the main account of Chia Tai futures used for 4 quotation software?
Gbase8s database select has order by Clause 6
爱可可AI前沿推介(6.29)
ERP preparation of bill of materials Huaxia
How to create new user for ORACLE 19c (CDB & PDB)
参加2022年杭州站Cocos Star Meetings
ArtBench:第一个类平衡的、高质量的、干净注释的和标准化的艺术品生成数据集
ERP编制物料清单 华夏
GBase8s数据库INTO STANDARD 和 INTO RAW 子句
GBase8s数据库INTO table 子句
【综合案例】信用卡虚拟交易识别
文件包含之日志中毒(User-Agent)
huffman编码
535. encryption and decryption of tinyurl: design a URL simplification system
内插散点数据
GBase8s数据库与 FOR UPDATE 子句不兼容的语法
ERP Kingdee for preparing BOM