🐷

VisualStudio Code上から実行するとSSLエラー

2022/12/10に公開

エラー内容とそのコード

例外が発生しました: SSLError
HTTPSConnectionPool(host='msedgedriver.azureedge.net', port=443): Max retries exceeded with url: /LATEST_RELEASE_99_WINDOWS (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

path = EdgeChromiumDriverManager().install()

解決法

VSCodeからではなく、Anaconda Promptから実行する。

または

VSCodeから直接Anaconda Promptをいじれるようにする

参考(今回は役に立たなかった)

PyInstallerでexeにして他人のPCから実行させたいので、不適切であった。
https://stackoverflow.com/questions/54135206/requests-caused-by-sslerrorcant-connect-to-https-url-because-the-ssl-module

Discussion