PyAutoGUIがインストールできない

実現したいこと

・Python 3.12にPyAutoGUI-0.9.54のライブラリをインストールしたいです。
・会社のPCを使用するため、pip install pyautoguiではSSLエラーとなってしまいました。
そのため、pypiからダウンロードしたPyAutoGUI-0.9.54.tar.gzをインストールしたいです。

発生している問題・分からないこと

「lib」フォルダ内に「PyAutoGUI-0.9.54.tar.gz」を保存し、コマンドプロンプトから下記を実行しました。
【実行した内容】
py -m pip install --no-index --find-links=lib pyautogui
【結果】
C:\Users\ZZZZZ>py -m pip install --no-index --find-links=lib pyautogui
Looking in links: lib
Processing c:\users\ZZZZZ\lib\pyautogui-0.9.54.tar.gz
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [47 lines of output]
Looking in links: lib
Processing c:\users\ZZZZZ\lib\setuptools-69.5.1.tar.gz
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'error'
error: subprocess-exited-with-error

pip subprocess to install backend dependencies did not run successfully. exit code: 1 [24 lines of output] Looking in links: lib Processing c:\users\ZZZZZ\lib\wheel-0.43.0.tar.gz Installing build dependencies: started Installing build dependencies: finished with status 'error' error: subprocess-exited-with-error pip subprocess to install build dependencies did not run successfully. exit code: 1 [3 lines of output] Looking in links: lib ERROR: Could not find a version that satisfies the requirement flit_core<4,>=3.8 (from versions: none) ERROR: No matching distribution found for flit_core<4,>=3.8 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error pip subprocess to install build dependencies did not run successfully. exit code: 1 See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error pip subprocess to install backend dependencies did not run successfully. exit code: 1 See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

該当のソースコード

C:\Users\ZZZZZ>py -m pip install --no-index --find-links=lib pyautogui Looking in links: lib Processing c:\users\ZZZZZ\lib\pyautogui-0.9.54.tar.gz Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [47 lines of output] Looking in links: lib Processing c:\users\ZZZZZ\lib\setuptools-69.5.1.tar.gz Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'error' error: subprocess-exited-with-error pip subprocess to install backend dependencies did not run successfully. exit code: 1 [24 lines of output] Looking in links: lib Processing c:\users\ZZZZZ\lib\wheel-0.43.0.tar.gz Installing build dependencies: started Installing build dependencies: finished with status 'error' error: subprocess-exited-with-error pip subprocess to install build dependencies did not run successfully. exit code: 1 [3 lines of output] Looking in links: lib ERROR: Could not find a version that satisfies the requirement flit_core<4,>=3.8 (from versions: none) ERROR: No matching distribution found for flit_core<4,>=3.8 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error pip subprocess to install build dependencies did not run successfully. exit code: 1 See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error pip subprocess to install backend dependencies did not run successfully. exit code: 1 See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.

試したこと・調べたこと

上記の詳細・結果

・「setuptools」と「wheel」が足りないのではとの記事を見て、同一の「lib」フォルダ内にsetuptools-69.5.1.tar.gzとwheel-0.43.0.tar.gzを追加。
→結果変わらず。

・「dependencies」のエラーかとも思えたので、「dependencies-7.7.0.tar.gz」も上記同様にlibフォルダ内に追加。
→結果変わらず

補足

・Anaconda環境で同様の現象にてうまくいかず断念。Anacondaをアンインストールし、Python 3.12をインストールして実行した結果です。解決方法教えていただければ幸いです。
・libフォルダはc:\users\ZZZZZ\libにて作成。c:\users\ZZZZZ\lib内にPyAutoGUI-0.9.54.tar.gz、setuptools-69.5.1.tar.gz、wheel-0.43.0.tar.gz、dependencies-7.7.0.tar.gzの4つのライブラリを保存。

コメントを投稿

0 コメント