本文介绍了pyautogui的导入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正确地在我的raspi上通过pip-3.2安装了pyautogui模块和依赖项,但是在我尝试的时候

I installed the pyautogui module and dependencies via pip-3.2 on my raspi correctly, However when I am trying to do

import pyautogui

我收到导入错误:

ImportError: No module named pyautogui

我是什么做错了?命令改变了吗?
对不起,我是一个总python Noob,非常感谢任何帮助:D

What am I doing wrong? Did the command change?Sorry I am a total python Noob, any help is greatly appreciated :D

推荐答案

这可能是因为你'从python 2.x shell尝试它。而是在python3 shell上尝试这个命令并尝试导入它。

It might be because you're trying it from a python 2.x shell. Instead try this command on a python3 shell and try importing the same.

这篇关于pyautogui的导入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 05:57