【错误记录】Mac 中 IntelliJ IDEA 运行 Python 程序报错 ( pip 21.0 will drop support for Python 2.7 in January 20 )
生活随笔
收集整理的這篇文章主要介紹了
【错误记录】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 )的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【开发环境】Mac 中安装 Python
- 下一篇: 【错误记录】Mac 中 IntelliJ