Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

In January 2023, we introduced new functionality which allows TRE users to install packages available within conda-forge, without needing to make a request to HIC Support to add packages for you. This works in the same way as our CRAN proxy, which performs live scanning of packages as they are downloaded. If your workspace was created prior to January, some manual changes will be required to your workspace.

🤔 Configuring an old workspace

You only need to complete this step if your workspace was created before February 2023. If you are unsure about when your workspace was created, repeating these steps will not break anything - so you are safe to repeat this portion if needed.

If you are on an older Windows workspace, you may need to open an Anaconda PowerShell prompt. Under Ubuntu workspaces, any terminal window should work fine. This instructs your conda environment to connect to the HIC conda proxy, rather than trying to reach out to the internet directly.

$ conda config --set channels http://conda.hic-tre.dundee.ac.uk/conda-forge/

on Windows, you should also remove the global condarc file. From PowerShell, this can be done with:

$ Remove-Item -Path C:\conda\.condarc

And that’s it! You should now be ready to install packages from conda-forge within your workspace.

If it doesn’t work, it might be due to an unusual installation of Conda on your Windows workspace. You can override the default repo path in the install command. For example, to install numpy:

conda install -c http://conda.hic-tre.dundee.ac.uk/conda-forge/ --override-channels numpy

\uD83D\uDCD8 Instructions

Installation of packages should be as you are used to with conda. For example, to install numpy, you would simply run:

$ conda install numpy

  • No labels