当前位置:网站首页>[环境配置]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版本行不通,我放弃了朋友们
边栏推荐
- GBase 8s 扩展外连接1
- JVM之方法区
- What is the main account of Chia Tai futures used for 4 quotation software?
- MySQL主从同步之 异步复制 半同步复制 全同步复制
- GBase8s数据库select有ORDER BY 子句1
- Cache consistency, delete cache, write cache, cache breakdown, cache penetration, cache avalanche
- Gbase8s database select has order by Clause 4
- [pbootcms template] composition website / document download website source code
- 535. encryption and decryption of tinyurl: design a URL simplification system
- GBase8s数据库FOR UPDATE 子句
猜你喜欢

智能指标驱动的管理和决策平台 Kyligence Zen 全新上线,限量内测中

Easy express: we use Zadig to realize 10000 times of construction and deployment, smart operation and maintenance, and release development productivity

多项目开发入门-业务场景关联基础入门测试 工资表

Artbench: the first class balanced, high-quality, clean annotated and standardized artwork generation data set

【LeetCode】14、最长公共前缀

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

How to install oracle19c in Centos8

Can software related inventions be patented in India?

What are outer chain and inner chain?

架构实战营第五模块课后作业
随机推荐
What are outer chain and inner chain?
How to view saved passwords of websites
地球观测卫星数据
Method area of JVM
模糊图片变清晰,一键双色图片,快速整理本地图片...这8个在线图片工具申请加入你的收藏夹!
MySQL 主从复制原理以及流程
ERP编制物料清单 基础
Pangolin compilation error: 'numeric_ limits’ is not a member of ‘std’
An interpretable geometric depth learning model for structure based protein binding site prediction
QQ集体被盗号,猝不及防的大型社死名场面
Li Kou daily question - day 31 -13 Roman array to integer
Pangolin编译error: ‘numeric_limits’ is not a member of ‘std’
Gbase8s database select has order by Clause 6
Is it safe for Orient Fortune Securities to open an account? Handling of securities account opening
Uncover the practice of Baidu intelligent test in the field of automatic test execution
Interview shock 61: tell me about MySQL transaction isolation level?
GBase8s数据库INTO STANDARD 和 INTO RAW 子句
Unified exception reporting practice based on bytecode
GBase8s数据库select有ORDER BY 子句3
Introduction to multi project development - business scenario Association basic introduction test payroll