【错误记录】Mac 中 IntelliJ IDEA 运行 Python 程序报错 ( pip 21.0 will drop support for Python 2.7 in January 20 )

2021/10/6 12:11:03

本文主要是介绍【错误记录】Mac 中 IntelliJ IDEA 运行 Python 程序报错 ( pip 21.0 will drop support for Python 2.7 in January 20 ),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

文章目录

  • 一、报错信息
  • 二、解决方案





一、报错信息



在 【错误记录】Mac 中 IntelliJ IDEA 运行 Python 程序报错 ( No module named ‘threadpool‘ ) 博客中 , 出现如下报错 ;

在这里插入图片描述

40:614: execution error: DEPRECATION: 
Python 2.7 reached the end of its life on January 1st, 2020. 
Please upgrade your Python as Python 2.7 is no longer maintained. 
pip 21.0 will drop support for Python 2.7 in January 2021. 
More details about Python 2 support in pip can be found at 
https://pip.pypa.io/en/latest/development/release-process/#python-2-support 
pip 21.0 will remove support for this functionality.




二、解决方案



安装 最新 Python 版本 ;

进入 Python 主页 https://www.python.org/ ;

选择 Downloads 选项卡下的下载最新版本 ;

在这里插入图片描述

下载完毕后的文件 ;

在这里插入图片描述

双击下载的 python-3.10.0-macos11.pkg 文件 ;

在这里插入图片描述

安装 Python

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

设置当前 Python 程序的 SDK ;

右键点击工程名 , 选择 " Open Module Settings " 选项 ;

在这里插入图片描述

在 Project 选项卡中选择 Python3.10 版本的 SDK ;

在这里插入图片描述


执行 【错误记录】Mac 中 IntelliJ IDEA 运行 Python 程序报错 ( No module named ‘threadpool‘ ) 博客中的操作 , 安装 threadpool 组件 ;
在这里插入图片描述

threadpool 安装完成 ;

在这里插入图片描述



这篇关于【错误记录】Mac 中 IntelliJ IDEA 运行 Python 程序报错 ( pip 21.0 will drop support for Python 2.7 in January 20 )的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程