当前位置:网站首页>[environment configuration]pwc-net
[environment configuration]pwc-net
2022-06-29 12:45:00 【Earth moving big white dog】
This paper is based on Source code github Of PyTorch/README.md Step configuration described in , meet bug solve bug
The environment create
conda create -n pwcnet_test python=2.7 anaconda // python2.7 conda The environment create
conda activate pwcnet_test // Get into python Environmental Science
pytorch And other dependent Downloads
It has been configured once before, but torch0.2 Out of commission , download 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
install opencv-python You may make a mistake :
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.
This is because python2.7 Installation is no longer supported opencv-python, You can download and install it yourself :
① Go to Download address Find the corresponding version to download ;
② In the virtual environment, use the following command to install
pip install opencv_python-3.1.0.5-cp27-cp27mu-manylinux1_x86_64.whl
install cffi May report an error :
raise TypeError, “dist must be a Distribution instance”
TypeError: dist must be a Distribution instance
Use the following command to install :
pip install certifi --ignore-installed
install external packages
Finally, go to the corresponding folder and execute the following command
cd external_packages/correlation-pytorch-master/
bash make_cuda.sh
cd ../../
I have encountered a problem that has been bothering me for a long time :
TypeError: dist must be a Distribution instance
Many solutions have been found on the Internet :
I feel : Maybe it is not installed cuda
①
②steuptool Version issue for ( and No solution My question )
The solution is to replace the lower version of setuptools, Run the following command in the virtual environment
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
stay swift An error is reported when running the last line of command in :
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse(‘pbr’)
This simple pip install pbr that will do , originate github issue
…
pytorch Version doesn't work , I gave up my friends
边栏推荐
- 对p值的理解
- Blurred pictures become clear, one button two-color pictures, quickly organize local pictures These 8 online picture tools apply to join your favorites!
- How to fix ORA-01017:用户名/口令无效 登录拒绝
- 缓存一致性,删除缓存,写入缓存,缓存击穿,缓存穿透,缓存雪崩
- Matlab简单入门
- 如何计算win/tai/loss in paired t-test
- [leetcode] 14. Longest public prefix
- MySQL master-slave synchronous asynchronous replication semi synchronous replication full synchronous replication
- LeetCode_双指针_中等_328.奇偶链表
- Gbase8s database into standard and into raw clauses
猜你喜欢

Cocos star meetings at Hangzhou station in 2022

1. opencv realizes simple color recognition

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

AGCO AI frontier promotion (6.29)

ArtBench:第一个类平衡的、高质量的、干净注释的和标准化的艺术品生成数据集

推荐模型复现(四):多任务模型ESMM、MMOE

MIT linear algebra Chinese Notes

Paper reproduction - ac-fpn:attention-guided context feature pyramid network for object detection

ERP preparation of bill of materials Huaxia

【智能QbD风险评估工具】上海道宁为您带来LeanQbD介绍、试用、教程
随机推荐
Mysql database master-slave synchronization, consistency solution
【智能QbD风险评估工具】上海道宁为您带来LeanQbD介绍、试用、教程
An interpretable geometric depth learning model for structure based protein binding site prediction
推荐模型复现(四):多任务模型ESMM、MMOE
Earth observation satellite data
Difficult conversation breaks through the bottleneck of conversation and achieves perfect communication
Can software related inventions be patented in India?
How can colleges and universities build future oriented smart campus based on cloud native? Full stack cloud native architecture vs traditional IT architecture
InDesign插件-常规功能开发-JS调试器打开和关闭-js脚本开发-ID插件
How to install oracle19c in Centos8
ERP Kingdee for preparing BOM
ERP编制物料清单 基础
Gbase8s database select has order by Clause 2
Gbase8s database for read only clause
MySQL 主从复制原理以及流程
ERP编制物料清单 金蝶
Introduction to multi project development - business scenario Association basic introduction test payroll
【JUC系列】同步工具类之ThreadLocal
NvtBack
cmake 报错