当前位置:网站首页>Reason for pilot importerror: cannot import name 'pilot_ Version 'from' PIL ', how to install pilot < 7.0.0
Reason for pilot importerror: cannot import name 'pilot_ Version 'from' PIL ', how to install pilot < 7.0.0
2022-07-27 10:04:00 【Redamancy06】
File “D:\Asoftware\Anaconda3\envs\3d_photo_stylization\lib\site-packages\torchvision\transforms\functional.py”, line 5, in
from PIL import Image, ImageOps, ImageEnhance, PILLOW_VERSION
ImportError: cannot import name ‘PILLOW_VERSION’ from ‘PIL’ (D:\Asoftware\Anaconda3\envs\3d_photo_stylization\lib\site-packages\PIL_init_.py)
Wrong explanation :torchvision Call... At run time PIL modular , call PIL Modular PILLOW_VERSION function . however PILLOW_VERSION stay Pillow 7.0.0 Later versions have been removed ,Pillow 7.0.0 Later versions use __version__ Function instead of PILLOW_VERSION function .
How to install pillow<7.0.0
First, go to the website to find the version suitable for your corresponding computer pillow package https://pypi.org/simple/pillow/

6.2.2 representative Pillow- edition ,cp37 representative python3.7 edition ,win_amd64 yes windows Under the version 64 The computer of bit
Method 1 . uninstall PIL modular , reinstall , install 7.0.0 Previous version , I have installed 6.2.2 edition , The command used is
pip install pillow==6.2.2

Method 2 : Use from PIL import Image, ImageOps, ImageEnhance, version In the replacement file from PIL import Image, ImageOps, ImageEnhance,PILLOW_VERSION This sentence .
To put it bluntly, it is to use __version__ Replace the original PILLOW_VERSION. Click Save to .
Then there is no wrong item
边栏推荐
- 食品安全 | 垃圾食品越吃越想吃?这份常见食品热量表请收好
- Understand chisel language. 24. Chisel sequential circuit (IV) -- detailed explanation of chisel memory
- Simple use of tflite
- NFT系统开发-教程
- WGAN、WGAN-GP、BigGAN
- Shell综合应用案例,归档文件、发送消息
- Understand chisel language. 27. Chisel advanced finite state machine (I) -- basic finite state machine (Moore machine)
- Understand chisel language. 25. Advanced input signal processing of chisel (I) -- asynchronous input and de jitter
- Learn typescript (1)
- Easy to understand! Graphic go synergy principle and Practice
猜你喜欢

I grabbed a ticket and thought I found the system bug of 12306

A ride into Qinchuan -- a brief talk on how beego Autorouter works

PCL各模块概述(1.6)

3D face reconstruction and dense alignment with position map progression network

I haven't delivered books for a long time, and I feel uncomfortable all over

StyleGAN论文笔记+修改代码尝试3D点云生成

中高级试题」:MVCC 实现原理是什么?

Why do microservices have to have API gateways?

Excellent Kalman filter detailed article

Qt 学习(二) —— Qt Creator简单介绍
随机推荐
Overview of PCL modules (1.6)
When I went to oppo for an interview, I got numb
Case of burr (bulge) notch (depression) detection of circular workpiece
Exercises --- quick arrangement, merging, floating point number dichotomy
Review summary of engineering surveying examination
How to install cpolar intranet penetration on raspberry pie
ACL2021最佳论文出炉,来自字节跳动
July training (day 19) - binary tree
Dcgan paper improvements + simplified code
3D人脸重建:Joint 3D Face Reconstruction and Dense Alignment with position Map Regression Network
3D修复论文:Shape Inpainting using 3D Generative Adversarial Network and Recurrent Convolutional Networks
flash闪存使用和STM32CUBEMX安装教程【第三天】
Excellent Kalman filter detailed article
Explain knative cloud function framework in simple terms!
Shell变量、系统预定义变量$HOME、$PWD、$SHELL、$USER、自定义变量、特殊变量$n、$#、$*、[email protected]、$?、env看所有的全局变量值、set看所有变量
活体检测综述
吃透Chisel语言.24.Chisel时序电路(四)——Chisel内存(Memory)详解
Brush the title "sword finger offer" day04
Shell的read 读取控制台输入、read的使用
Introduction to regular expressions of shell, general matching, special characters: ^, $,., * Character range (brackets): [], special characters: \, matching mobile phone number