• <tfoot id='fTfUE'></tfoot>

      <small id='fTfUE'></small><noframes id='fTfUE'>

      <i id='fTfUE'><tr id='fTfUE'><dt id='fTfUE'><q id='fTfUE'><span id='fTfUE'><b id='fTfUE'><form id='fTfUE'><ins id='fTfUE'></ins><ul id='fTfUE'></ul><sub id='fTfUE'></sub></form><legend id='fTfUE'></legend><bdo id='fTfUE'><pre id='fTfUE'><center id='fTfUE'></center></pre></bdo></b><th id='fTfUE'></th></span></q></dt></tr></i><div id='fTfUE'><tfoot id='fTfUE'></tfoot><dl id='fTfUE'><fieldset id='fTfUE'></fieldset></dl></div>

        • <bdo id='fTfUE'></bdo><ul id='fTfUE'></ul>
      1. <legend id='fTfUE'><style id='fTfUE'><dir id='fTfUE'><q id='fTfUE'></q></dir></style></legend>
      2. 为什么pyauto gui和pycharm对我不起作用?

        Why is pyauto gui and Pycharm not working for me?(为什么pyauto gui和pycharm对我不起作用?)
        <legend id='DOwL5'><style id='DOwL5'><dir id='DOwL5'><q id='DOwL5'></q></dir></style></legend>

              <tbody id='DOwL5'></tbody>
            <i id='DOwL5'><tr id='DOwL5'><dt id='DOwL5'><q id='DOwL5'><span id='DOwL5'><b id='DOwL5'><form id='DOwL5'><ins id='DOwL5'></ins><ul id='DOwL5'></ul><sub id='DOwL5'></sub></form><legend id='DOwL5'></legend><bdo id='DOwL5'><pre id='DOwL5'><center id='DOwL5'></center></pre></bdo></b><th id='DOwL5'></th></span></q></dt></tr></i><div id='DOwL5'><tfoot id='DOwL5'></tfoot><dl id='DOwL5'><fieldset id='DOwL5'></fieldset></dl></div>

                <small id='DOwL5'></small><noframes id='DOwL5'>

              1. <tfoot id='DOwL5'></tfoot>
                  <bdo id='DOwL5'></bdo><ul id='DOwL5'></ul>
                  本文介绍了为什么pyauto gui和pycharm对我不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  import pyautogui
                  pyautogui.PAUSE = 1
                  pyautogui.FAILSAFE = True
                  
                  pyautogui.click(274, 783)
                  

                  我在Mac上运行PyCharm。我已经尝试通过PIP3从解释器和终端安装pyautogui。我正在尝试运行一个简单的测试,看看它是否能为我单击一次鼠标,但响应为:

                  /Users/user/PycharmProjects/NewContractBuyingMacro/venv/bin/python "/Users/user/PycharmProjects/NewContractBuyingMacro/Buying FD Macro 1.py"
                  Traceback (most recent call last):
                    File "/Users/user/PycharmProjects/NewContractBuyingMacro/Buying FD Macro 1.py", line 3, in <module>
                      import pyautogui
                    File "/Users/user/PycharmProjects/NewContractBuyingMacro/venv/lib/python2.7/site-packages/pyautogui/__init__.py", line 241, in <module>
                      import mouseinfo
                    File "/Users/user/PycharmProjects/NewContractBuyingMacro/venv/lib/python2.7/site-packages/mouseinfo/__init__.py", line 100, in <module>
                      from rubicon.objc import ObjCClass, CGPoint
                    File "/Users/user/PycharmProjects/NewContractBuyingMacro/venv/lib/python2.7/site-packages/rubicon/objc/__init__.py", line 3, in <module>
                      from .runtime import (  # noqa: F401
                    File "/Users/user/PycharmProjects/NewContractBuyingMacro/venv/lib/python2.7/site-packages/rubicon/objc/runtime.py", line 785
                      self.restype, *self.argtypes = ctypes_for_method_encoding(self.encoding)
                                    ^
                  SyntaxError: invalid syntax
                  

                  我以为这可能与Mac不想让程序控制鼠标有关,但现在我不这么认为。我想应该是简单的东西。感谢您的任何帮助。

                  PyCharm

                  可能发生此问题的一个原因是,推荐答案上的Python解释器是较旧的版本(2.7或更早)。将解释器更改为Python 3将解决此问题

                  Pyautogui仅与最新版本的Python一起运行,并且不支持任何旧版本的Python。要更改解释器,请导航到设置>;首选项>;python解释器,然后选择python3解释器(解释器的位置-/usr/bin/python3)。 如果您无法更换解释器,请参阅视频教程

                  这篇关于为什么pyauto gui和pycharm对我不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  GUI Freezes while downloading PyQt5 and Pytube(GUI在下载PyQt5和Pytube时冻结)
                  How to solve memory issues while multiprocessing using Pool.map()?(如何解决使用Pool.map()进行多处理时的内存问题?)
                  Python - How to use FastAPI and uvicorn.run without blocking the thread?(Python-如何使用FastAPI和uvicorn.run而不阻塞线程?)
                  How to increment a shared counter from multiple processes?(如何从多个进程递增共享计数器?)
                  Using pika, how to connect to rabbitmq running in docker, started with docker-compose with external network?(使用pika,如何连接运行在docker中的rabbitmq,从docker开始-与外部网络连接?)
                  How to use .rolling() on each row of a Pandas dataframe?(如何对 pandas 数据帧的每一行使用.roll()?)
                • <i id='SCN4K'><tr id='SCN4K'><dt id='SCN4K'><q id='SCN4K'><span id='SCN4K'><b id='SCN4K'><form id='SCN4K'><ins id='SCN4K'></ins><ul id='SCN4K'></ul><sub id='SCN4K'></sub></form><legend id='SCN4K'></legend><bdo id='SCN4K'><pre id='SCN4K'><center id='SCN4K'></center></pre></bdo></b><th id='SCN4K'></th></span></q></dt></tr></i><div id='SCN4K'><tfoot id='SCN4K'></tfoot><dl id='SCN4K'><fieldset id='SCN4K'></fieldset></dl></div>

                        <tfoot id='SCN4K'></tfoot>

                        <small id='SCN4K'></small><noframes id='SCN4K'>

                          <bdo id='SCN4K'></bdo><ul id='SCN4K'></ul>

                              <tbody id='SCN4K'></tbody>
                            <legend id='SCN4K'><style id='SCN4K'><dir id='SCN4K'><q id='SCN4K'></q></dir></style></legend>