[Python] Temporary measures against pyautogui (PyMsgBox) installation error

Overview

Yesterday (May 24, 2020), when I tried to install the external library pyautogui with pip, I got an error and could not install it. About half a month ago, I was able to install it on the same PC without any problems, so I thought it was strange and tried it. The root cause is not yet known, but I will note it because I was able to deal with it provisionally for the time being.

Conclusion

It is expected that an error has occurred in the external library "PyMsgBox" installed with pyautogui. Before installing pyautogui ** Install ver.1.0.7, which is one before the latest version of PyMsgBox, individually. After that, I was able to avoid the error and install by installing pyautogui **. To install a library that is not the latest version with pip, specify ver. As shown below. pip install PyMsgBox==1.0.7

error contents

Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\aaa\desktop\python\test_env\scripts\python.exe' 'c:\users\aaa\desktop\python\test_env\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 
'C:\Users\aaa\AppData\Local\Temp\tmpu281egyw'
         cwd: C:\Users\aaa\AppData\Local\Temp\pip-install-d2sptygb\pymsgbox
    Complete output (14 lines):
    running dist_info22:17 2020/05/24
    creating C:\Users\aaa\AppData\Local\Temp\pip-modern-metadata-exbqlb5h\PyMsgBox.egg-info
    writing C:\Users\aaa\AppData\Local\Temp\pip-modern-metadata-exbqlb5h\PyMsgBox.egg-info\PKG-INFO
    writing dependency_links to C:\Users\aaa\AppData\Local\Temp\pip-modern-metadata-exbqlb5h\PyMsgBox.egg-info\dependency_links.txt
    writing top-level names to C:\Users\aaa\AppData\Local\Temp\pip-modern-metadata-exbqlb5h\PyMsgBox.egg-info\top_level.txt
    writing manifest file 'C:\Users\aaa\AppData\Local\Temp\pip-modern-metadata-exbqlb5h\PyMsgBox.egg-info\SOURCES.txt'
    reading manifest file 'C:\Users\aaa\AppData\Local\Temp\pip-modern-metadata-exbqlb5h\PyMsgBox.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    Error in sitecustomize; set PYTHONVERBOSE for traceback:
    SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0x8e in position 0: invalid start byte (sitecustomize.py, line 7)
    warning: no files found matching '*.py' under directory 'pymsgbox'
    writing manifest file 'C:\Users\aaa\AppData\Local\Temp\pip-modern-metadata-exbqlb5h\PyMsgBox.egg-info\SOURCES.txt'
    creating 'C:\Users\aaa\AppData\Local\Temp\pip-modern-metadata-exbqlb5h\PyMsgBox.dist-info'
    error: invalid command 'bdist_wheel'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\aaa\desktop\python\test_env\scripts\python.exe' 'c:\users\aaa\desktop\python\test_env\lib\site-packages\pip\_vendor\pep517\_in_process.py' 
prepare_metadata_for_build_wheel 'C:\Users\aaa\AppData\Local\Temp\tmpu281egyw' Check the logs for full command output.

I could hardly understand the error contents, but I noticed the word PyMsgBox. When I checked the official website of PyMsgBox, the latest version 1.0.8 was released on 2020/05/12. I suspected that this had an effect, so I tried downgrading for the time being I was able to install pyautogui safely (?).

environment

Other things I tried

Impressions etc.

As mentioned above, no fundamental solution has been reached. It is unknown whether the cause of this error is, but it is said that errors due to character codes occur frequently in Python, so I would like to study that area in the future.

(Please let me know if you understand the meaning of the error content)

Recommended Posts

[Python] Temporary measures against pyautogui (PyMsgBox) installation error
Python installation
Python installation
centOS 7 installation error
My pyautogui (python)
Python installation (Windows)
Python Error Handling
Python installation 2020 (macOS)
Python3.4 installation notes