python问题:SyntaxError: future feature annotations is not defined. 将python卸载3.6.8重装为3.7进行解决

有些安装包python3.6不行,所以重装为3.7

首先找到python3.6.8所在的文件位置

python问题:SyntaxError: future feature annotations is not defined. 将python卸载3.6.8重装为3.7进行解决_第1张图片

(假装这是3.6.8  安装成功之后删早了  忘写博客了)

从官网下载python3.7
https://www.python.org/downloads/

点击Download

跳转下述页面,向下拉,找到python3.7 ——单击跳转页面

python问题:SyntaxError: future feature annotations is not defined. 将python卸载3.6.8重装为3.7进行解决_第2张图片

选择画红线,点击下载——选择下载文件的位置

 python问题:SyntaxError: future feature annotations is not defined. 将python卸载3.6.8重装为3.7进行解决_第3张图片

 python问题:SyntaxError: future feature annotations is not defined. 将python卸载3.6.8重装为3.7进行解决_第4张图片

 文件位置出现下述情况,删除3.6.8即可

python问题:SyntaxError: future feature annotations is not defined. 将python卸载3.6.8重装为3.7进行解决_第5张图片

双击python3.7.0进行安装 

安装成功后,打开pycharm  ——左击File ——找到Settings

python问题:SyntaxError: future feature annotations is not defined. 将python卸载3.6.8重装为3.7进行解决_第6张图片

单击标号3——Add——跳转下述下面

python问题:SyntaxError: future feature annotations is not defined. 将python卸载3.6.8重装为3.7进行解决_第7张图片

选择python.exe

python问题:SyntaxError: future feature annotations is not defined. 将python卸载3.6.8重装为3.7进行解决_第8张图片

单击右下角OK即可

键盘输入win+R ——输入cmd——回车——输入python -v 

查看python版本

C:\Users\DELL>python -v

 

 耶~ 

成功了

你可能感兴趣的:(Python,python,开发语言,后端,pycharm)