【トラブル】【Python】Python の環境設定周りのトラブルシューティング

■ はじめに

https://dk521123.hatenablog.com/entry/2019/10/24/000000

などで、Pythonの環境設定した際に起こったトラブルについて
解決案などを少しづつまとめていく

目次

【1】anaconda でPythonのダウングレードしようとした際にエラー「Solving environment: failed」が表示

【1】anaconda でPythonのダウングレードしようとした際にエラー「Solving environment: failed」が表示

Python3.6でeggファイルを作成するために
Python を 3.7 から 3.6 にダウングレードをする際に
以下のコマンドを実行した結果、以下「エラー内容」が表示されてしまった
~~~~
conda install python=3.6
~~~~

エラー内容

Solving environment: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/pro/win-64/repodata.json.bz2>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/pro/win-64/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))

解決案

環境変数 Path に「<Aancondaのパス>\Anaconda3\Library\bin」を設定する

※ 詳細は、以下の関連記事の「環境変数 Path を通し忘れたら...」を参照のこと

https://dk521123.hatenablog.com/entry/2019/10/24/000000

関連記事

Visual Studio CodePython拡張 ~
https://dk521123.hatenablog.com/entry/2019/10/24/000000
eggファイルを作成するには...
https://dk521123.hatenablog.com/entry/2020/02/09/234350