提问人:what the 提问时间:11/14/2023 更新时间:11/14/2023 访问量:51
为什么切换 Python 版本时 Python 导入停止工作?
Why does Python Imports stop working when I switch Python version?
问:
我正在使用“pyautogui”模块处理一个项目,我需要将我的 python 版本从基础 3.7.4 切换到 3.11.6,但是当我切换它时,它给出了一个错误。我目前正在使用 VSCode(如果这有帮助的话)。'Import "pyautogui" could not be resolved from source'
我尝试卸载并重新安装“pyautogui;多次,但是当我这样做时,它说,我已经尝试下载最新版本的conda,但是,它仍然说,从我所有的调试方法中。我也尝试过更新 pip 安装程序,但这也不起作用。'Requirement already satisfied.'
"Import "pyautogui" could not be resolved from source"
答:
评论
pip3.11
pip3.7
pip3
python3.11 -m pip install ...