当前位置:网站首页>"Syntaxerror: future feature annotations is not defined"
"Syntaxerror: future feature annotations is not defined"
2022-07-27 00:23:00 【Hui e】
SyntaxError: future feature annotations is not defined
Error message :
File "predict.py", line 9, in <module>
from PIL import Image
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
File "/home/nvidia/.local/lib/python3.6/site-packages/Pillow-9.2.0-py3.6-linux-aarch64.egg/PIL/Image.py", line 52, in <module>
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 951, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 894, in _find_spec
File "<frozen importlib._bootstrap_external>", line 1157, in find_spec
File "<frozen importlib._bootstrap_external>", line 1131, in _get_spec
File "<frozen importlib._bootstrap_external>", line 1112, in _legacy_get_spec
File "<frozen importlib._bootstrap>", line 441, in spec_from_loader
File "<frozen importlib._bootstrap_external>", line 544, in spec_from_file_location
File "/home/nvidia/.local/lib/python3.6/site-packages/Pillow-9.2.0-py3.6-linux-aarch64.egg/PIL/_deprecate.py", line 1
SyntaxError: future feature annotations is not defined
The suspicion is python Version and pillow Version mismatch of resulted in
The original environment :python==3.6+pillow==9.2.0
Yes pillow Downgrade to pillow==8.4.0 solve
边栏推荐
- Mysql database complex operations: Database Constraints, query / connect table operations
- Leetcode - linked list
- Alexnet (pytoch Implementation)
- Search engine hijacking of black hat SEO
- LeetCode题目——数组篇
- Relationship between Unicode and UTF-8
- Training team lpoj round10 e Jumping Frog
- Uni app learning (II)
- CCPD data set processing (target detection and text recognition)
- Double. isNaN(double var)
猜你喜欢

Dynamic memory management

LeetCode——哈希表篇

Midge paper reading notes

Method of realizing program startup and self startup through registry

Drawing warehouse Tsai

Database: MySQL foundation +crud basic operation

数据库:MySQL基础+CRUD基本操作

Deeplabcut uses 1

About no module named'django.db.backends.mysql'

Chapter 2 develop user traffic interceptors
随机推荐
今日份20220719折腾deeplabcut
Abstract classes and interfaces (sorting out some knowledge points)
CSDN文章语法规则
The basic operation of data tables in MySQL is very difficult. This experiment will take you through it from the beginning
Transformers is a graph neural network
Transpose convolution correlation
Design of alcohol detector based on 51 single chip microcomputer
C and pointer Chapter 18 runtime environment 18.7 problems
09_ Keyboard events
Chapter 1 Introduction and use skills of interceptors
Codeforces d.constructing the array (priority queue)
Chapter 1 develop the first restful application
C and pointer Chapter 18 runtime environment 18.1 judgment of runtime environment
LeetCode题目——二叉树篇
What scenarios are Tencent cloud lightweight application servers suitable for?
[Gorm] model relationship -hasone
Configure deeplobcut2 with your head covered
torch.相关函数
Opencv camera calibration and distortion correction
4-4 object lifecycle