Proxy configurations Anaconda

Proxy configurations Anaconda

First version: 2022-10-31
Latest version: 2023-11-16
Last change(s): Clarification in the introduction; clarifying instructions; added screenshots.

This is a community effort. The article was created by the anDREa Support Team in their spare time. If you have found a more efficient way to approach this, please contact us and will will update the article.

Introduction

To guarantee security, Workspaces do not have internet access by default. However, some software might need a certain degree of internet access to work. Instead of opening up to the whole internet, domain allowlisting can be requested. However, sometimes this might not be enough to reach the website(s). Certain software might need manual proxy configurations to be set in the software settings, before the software is able to reach domains through a proxy. In this article we describe how to manually configure Anaconda/Miniconda proxy settings.

Install Anaconda/Miniconda

  1. Whitelist the required domains.
    1. You will need at least:
      1. conda.io
      2. anaconda.com
      3. anaconda.org
  2. In the VM, open the browser and navigate to:
    1. conda.io for Miniconda
    2. anaconda.com for Anaconda
  3. Install a version.
In the example, Anaconda3 py310_2023.03-0 (64-bit) installer was used. The steps have been successfully replicated with the Anaconda3 2023.09-0 (64-bit) installer.

Setting the proxy in Anaconda Prompt

  1. Make sure the proxy is being used. Within the VM go to the magnifying glass on the bottom left and type 'Change proxy settings'.


  1. Make sure the Use proxy server setting is set to On and that the proxy address is correct.

  1. Right click on Anaconda Prompt and select Run as Administrator. You know you're running Anaconda Prompt as administrator when it displays (base) C:\Windows\system32>

  1. Type the commands below. If you don't want to type it over, you can download the attached text file (at the bottom of the article) and upload it to your Workspace. You can open the text file in the Workspace and copy paste the commands line for line. Press ENTER after each line.

  1. Close Anaconda Prompt.
  2. You can now use conda install -c conda-forge [package name] in Anaconda Prompt to install Python packages. For example, install the package 'pyreadstat'.




Script to type

Type this line by line with every line followed by ENTER.
  1. conda config --prepend channels conda-forge
  2. conda config --append channels defaults
  3. conda config --set channel_priority flexible
  4. conda config --set proxy_servers.http http://proxy.mydre.org:3128
  5. conda config --set proxy_servers.https http://proxy.mydre.org:3128
  6. conda config --set ssl_verify false
  7. conda config --set pip_interop_enabled true

    • Related Articles

    • Proxy configurations for connecting to a server or blob

      Version: 2022-11-02 Update: 2022-11-14 Introduction Domain allowlisting is a feature that is now available on myDRE. As the name implies, domains on the allowlist can be accessed from within the Workspace (you can request specific domain on the ...
    • Domains to be whitelisted/allowlisted for known applications

      First version: 2022-11-01 Last updated: 2023-11-28 Last change: Domains added for docker and PyCharm; introduction added; formatting. Introduction This is a community effort, if you experience issues, see mistakes/updates, or have other applications ...
    • Python, Anaconda and JupyterLab

      Within the DRE, it is currently not possible to use PIP to install packages. We recommend using Conda instead. First follow the steps below and then use for example Conda Prompt or Jupyter Lab to create and run your code. To install packages with ...
    • Turn Proxy Off on Linux VM

      1. Log in to the Linux VM 2. Write command sudo nano /etc/environment press enter and enter your password 3. comment out all the content that you find in there e.g #http_proxy="http://127.0.0.1:8080" 4. Press ctrl + x to exit, save with y and press ...
    • COMPLETED at 17:30 CET: Downtime between 17:00-18:00 CET - Improvement of proxy stability

      The improvement was updated according to plan and finished 17:30CET with a downtime of less than 20 minutes. Our developers found a way to improve the stability of the proxy for this a small migration of internal services will take place between ...