LoginSignup
3
1

More than 1 year has passed since last update.

Anaconda3 でプロキシ (fiddler) を使う場合の設定

Last updated at Posted at 2021-07-16

まえがき

Anaconda3 2021.05 バージョンを普通にインストールした所、起動しませんでした。
プロキシ(Fiddler)を使う場合は設定が必要ですが、設定してもエラーに。
調べた所 urllib3 のライブラリに不具合がありバージョンダウンする必要が(現状は)ありそうです。

※以下 conda でパッケージ管理しています、pip でもインストールできますがどちらかに合わせたほうが良いです。

エラーの内容

ValueError:check_hostname requires server_hostname

プロキシの設定

  • Anaconda Prompt で conda 情報を確認
(base) C:\WINDOWS\system32>conda info
  • user config file (個人ユーザの場合), poplulated config files (全体ユーザの場合) の箇所に記載の .condarc を編集

デフォルトは C:/Users/<Username>/.condarc

channels:
  - defaults
show_channel_urls: True
allow_other_channels: True
proxy_servers:
  http: http://127.0.0.1:8888
  https: https://127.0.0.1:8888
ssl_verify: False

上記の proxy_servers の箇所を編集

  • Anaconda Prompt で 設定を確認
(base) C:\WINDOWS\system32>conda config --show proxy_servers
proxy_servers:
  http: http://127.0.0.1:8888
  https: https://127.0.0.1:8888

urllib3 のダウングレード

  • Anaconda Prompt で実行
(base) C:\WINDOWS\system32>conda install urllib3=1.25.11
  • インストールを確認
(base) C:\WINDOWS\system32>conda list urllib3
# packages in environment at :
#
# Name                    Version                   Build  Channel
urllib3                   1.25.11                    py_0    defaults

Anaconda Navigator 起動

Anaconda Navigator を起動して、無事起動すれば完了です。
お疲れさまでした!

参考サイト

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1