・環境
windows11
anaconda
python3.88
python初心者です
pythonファイルを実行すると以下のエラーが起こって困っています
Traceback (most recent call last): File "C:\Users\genge\anaconda3\lib\site-packages\urllib3\connectionpool.py", line 688, in urlopen conn = self._get_conn(timeout=pool_timeout) File "C:\Users\genge\anaconda3\lib\site-packages\urllib3\connectionpool.py", line 280, in _get_conn return conn or self._new_conn() File "C:\Users\genge\anaconda3\lib\site-packages\urllib3\connectionpool.py", line 979, in _new_conn raise SSLError( urllib3.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\genge\anaconda3\lib\site-packages\requests\adapters.py", line 439, in send resp = conn.urlopen( File "C:\Users\genge\anaconda3\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen retries = retries.increment( File "C:\Users\genge\anaconda3\lib\site-packages\urllib3\util\retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.python.org', port=443): Max retries exceeded with url: / (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:/Users/genge/Desktop/python_practice/lesson.py", line 5, in <module> r = requests.get(url) File "C:\Users\genge\anaconda3\lib\site-packages\requests\api.py", line 76, in get return request('get', url, params=params, **kwargs) File "C:\Users\genge\anaconda3\lib\site-packages\requests\api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "C:\Users\genge\anaconda3\lib\site-packages\requests\sessions.py", line 542, in request File "C:\Users\genge\anaconda3\lib\site-packages\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "C:\Users\genge\anaconda3\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "C:\Users\genge\anaconda3\lib\site-packages\requests\adapters.py", line 514, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='www.python.org', port=443): Max retries exceeded with url: / (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))
・試したこと
恐らくCan't connect to HTTPS URL because the SSL module is not available.
の部分が関係しているんだと思い、ググって調べたらpathを通せと書いてあったので以下のようにやってみたんですが、できませんでした。
"C:\Users\genge\anaconda3\Lib\site-packages\conda\shell\Library\bin"
pathを追加する方法が間違えていたかもしれません
ご教授いただけたら幸いです
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/11/28 09:16 編集