Help us understand the problem. What is going on with this article?

Anaconda via proxy server on windows 10

More than 1 year has passed since last update.

TL;DR

  • プロキシ環境下でのアナコンダとpipの設定
  • Windows10向け(厳密にはwin7以降が対象)
  • Anaconda3系で確認した

.condarc

配置先は C:\Users\ユーザ名\

コマンドプロンプトでの.condarc作成方法

copy nul .condarc

PowerShellでの.condarc作成方法

New-Item -ItemType file .condarc

.condarcの内容

proxy_servers:
    http: http://proxy.server/
    https: http://proxy.server/

確認方法

Anaconda Promptで

conda config --show proxy_servers

pip.ini

配置先

次のフォルダを作成する
C:\ProgramData\pip

pip.iniの内容

pip.ini
[global]
proxy = proxy.server
trusted-host = pypi.python.org
               pypi.org
               files.pythonhosted.org

[install]

確認方法

Anaconda Promptで

pip config list

参考

On Windows 7 and later the file is hidden, but writeable at C:\ProgramData\pip\pip.ini
pip install fails with “connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)”
pip設定ファイルの書き方
WindowsでLinux/UNIXのtouchコマンド相当(0Byteのファイル作成)の処理

it__ssei
自動テストと定時退社が好き。専門は物理学(大気力学、力学系)
https://twitter.com/it__ssei
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away