#πŸ”’ beginner needs help with error

16 messages Β· Page 1 of 1 (latest)

obtuse forge
#

when im doing this command the errors below occur

import pyautogui
pyautogui.displayMousePosition()

Press Ctrl-C to quit.
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
pyautogui.displayMousePosition()
File "C:\Users\Likef\AppData\Local\Programs\Python\Python314\Lib\site-packages\pyautogui_init_.py", line 1759, in displayMousePosition
pixelColor = pyscreeze.screenshot().getpixel(
NameError: name 'pyscreeze' is not defined

signal steppeBOT
#

@obtuse forge

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

sly escarp
#

Must be a bug

obtuse forge
#

i see how do i downgrade the version?

#

can i do that via command?

sly escarp
#

How did you install Python?

obtuse forge
#

website

sly escarp
#

Then install an older version from the website

#

3.13 should be good and stable enough for you

sly escarp
obtuse forge
#

do i need to reinstall all pip?

sly escarp
#

after switching to a different Python version, you do need to pip install pyautogui for that version

signal steppeBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.