前提・実現したいこと
前提
python(ver3.10.0,pip 21.2.3)を使用しています。
Chromeはver95.0.4638.54で、最新です。
実現したいこと
Chromedriverを使ってブラウザを開けるようにしたい
質問
以下エラーメッセージの解決策を教えてください。
発生している問題・エラーメッセージ
Chromedriverをインストールをしても開くことができず、その原因がバージョンが異なっているためかと考え、
以下を実行しましたがエラーメッセージが出てしまいます。
pip install chromedriver-binary==95.0.4638.54
ERROR: Could not find a version that satisfies the requirement chromedriver-binary==95.0.4638.54 (from versions: 2.29.1, 2.31.1, 2.33.1, 2.34.0, 2.35.0, 2.35.1, 2.36.0, 2.37.0, 2.38.0, 2.39.0, 2.40.1, 2.41.0, 2.42.0, 2.43.0, 2.44.0, 2.45.0, 2.46.0, 70.0.3538.16.0, 70.0.3538.67.0, 70.0.3538.97.0, 71.0.3578.30.0, 71.0.3578.33.0, 71.0.3578.80.0, 71.0.3578.137.0, 72.0.3626.7.0, 72.0.3626.69.0, 73.0.3683.20.0, 73.0.3683.68.0, 74.0.3729.6.0, 75.0.3770.8.0, 75.0.3770.90.0, 75.0.3770.140.0, 76.0.3809.12.0, 76.0.3809.25.0, 76.0.3809.68.0, 76.0.3809.126.0, 77.0.3865.10.0, 77.0.3865.40.0, 78.0.3904.11.0, 78.0.3904.70.0, 78.0.3904.105.0, 79.0.3945.16.0, 79.0.3945.36.0, 80.0.3987.16.0, 80.0.3987.106.0, 81.0.4044.20.0, 81.0.4044.69.0, 81.0.4044.138.0, 83.0.4103.14.0, 83.0.4103.39.0, 84.0.4147.30.0, 85.0.4183.38.0, 85.0.4183.83.0, 85.0.4183.87.0, 86.0.4240.22.0, 87.0.4280.20.0, 87.0.4280.87.0, 87.0.4280.88.0, 88.0.4324.27.0, 88.0.4324.27.1, 88.0.4324.96.0, 89.0.4389.23.0, 90.0.4430.24.0, 91.0.4472.19.0, 91.0.4472.101.0, 92.0.4515.43.0, 92.0.4515.107.0, 93.0.4577.15.0, 93.0.4577.63.0, 94.0.4606.41.0, 94.0.4606.61.0, 95.0.4638.10.0, 95.0.4638.17.0, 96.0.4664.18.0) ERROR: No matching distribution found for chromedriver-binary==95.0.4638.54
試したこと
ver95.0.4638.54のクロームドライブが存在しないのだと思い、以下を実行しましたが、
結果はエラーメッセージが表示されてしまい、インストールできませんでした。
pip install chromedriver-binary==95.0.4638.10.0 pip3 install chromedriver-binary==95.0.4638.10.0 pip install chromedriver-binary==95.0.4638.17.0 pip3 install chromedriver-binary==95.0.4638.17.0
ERROR: Command errored out with exit status 1: command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2z/7v44c64n2czdn63661q21s1m0000gn/T/pip-install-9s1s2um0/chromedriver-binary_f2b451316e2645aea72734263ec7c0b2/setup.py'"'"'; __file__='"'"'/private/var/folders/2z/7v44c64n2czdn63661q21s1m0000gn/T/pip-install-9s1s2um0/chromedriver-binary_f2b451316e2645aea72734263ec7c0b2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/2z/7v44c64n2czdn63661q21s1m0000gn/T/pip-record-npquejx3/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/chromedriver-binary cwd: /private/var/folders/2z/7v44c64n2czdn63661q21s1m0000gn/T/pip-install-9s1s2um0/chromedriver-binary_f2b451316e2645aea72734263ec7c0b2/ Complete output (79 lines): running install running build running build_py Downloading Chromedriver... Traceback (most recent call last): ---------------------------------------- 途中省略 ---------------------------------------- Traceback (most recent call last): ---------------------------------------- 途中省略 ---------------------------------------- Traceback (most recent call last): ---------------------------------------- 途中省略 ---------------------------------------- RuntimeError: Failed to download chromedriver archive: https://chromedriver.storage.googleapis.com/95.0.4638.17/chromedriver_mac64.zip ---------------------------------------- ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2z/7v44c64n2czdn63661q21s1m0000gn/T/pip-install-9s1s2um0/chromedriver-binary_f2b451316e2645aea72734263ec7c0b2/setup.py'"'"'; __file__='"'"'/private/var/folders/2z/7v44c64n2czdn63661q21s1m0000gn/T/pip-install-9s1s2um0/chromedriver-binary_f2b451316e2645aea72734263ec7c0b2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/2z/7v44c64n2czdn63661q21s1m0000gn/T/pip-record-npquejx3/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/chromedriver-binary Check the logs for full command output. WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available. You should consider upgrading via the '/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -m pip install --upgrade pip' command.
あなたの回答
tips
プレビュー