前提
Windows11でubuntu上にanacondaをインストールしたのち、
機械学習に向けてkerasやtensorflowをインストールしたいため、
pythonのバージョンを3.7に落としたい
実現したいこと
anacondaでpythonのバージョンを3.7に落としたい(現在はanacondaを入れた初期の状態でバージョンは3.9.13)
発生している問題
調べたら
conda install python=3.7
で実行できるとあったので実行してみたがエラーが出て実行できず、
その後
python --version
を行ってもやはり
Python 3.9.13
となる
エラーメッセージ
Collecting package metadata (current_repodata.json): failed CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/linux-64/current_repodata.json> 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. 'https//repo.anaconda.com/pkgs/main/linux-64'
試したこと
いろいろ調べて、pythonのバージョン指定を3.7.13や3.6、3.6.6などと変えても同様のエラー分が出る。
また、ネットで出てきた方法を参考として
conda install anaconda-clean
anaconda-clean
や、
conda create -n testpy37 python=3.7
conda activate testpy37
なども試してみたが1行目の時点で上と同様のエラー文が出てきてしまいなにも実行できない。
補足情報(FW/ツールのバージョンなど)
conda -V
conda 22.9.0
コメントへの返信
conda update --all を実行しても同様エラー発生しますか?
試してみましたが同様のエラーが発生しました。
パソコンが接続しているネットワークは、プロキシ下ではないですか? conda search numpy とかできますか?
パソコンにあまり強くないものでプロキシ下かどうかの判別がよくわかりませんでした。
ただconda seach numpy をしたところ、
Loading channels: failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/main/linux-64/repodata.json
Elapsed: -
以下略
と出て実行できませんでした。