Coder Social home page Coder Social logo

binary-bootstrap's Introduction

The script in this repository is a quick and easy way of installing the latest version of nnpdf into your computer under a conda environment:

curl https://raw.githubusercontent.com/NNPDF/binary-bootstrap/master/bootstrap.sh -o bootstrap.sh
sh bootstrap.sh

and, assuming that the initialization step was accepted in the previous script,

conda create -n nnpdf_env nnpdf -y
conda activate nnpdf_env

This script does three things:

  • Download and install conda, trying to get the right architecture for the computer. You can run the following in your terminal:

  • Set the appropiriate conda channels to install the NNPDF dependencies. This is done by writting a ~/.condarc file with the following content:

channels:
  - https://packages.nnpdf.science/public
  - conda-forge
  - defaults

In case the file exists, the script doesn't touch it (as not even with conda config is it easy to set the channels in order).

Note: Make sure that the order of the channels is the same as above Otherwise you might receive incompatible packages. Defaults is not necessary.

Common issues

In case of a conflict between local and conda-installed packages, use the environment flag PYTHONUSERBASE:

export PYTHONUSERBASE=intentionally-disabled

If the installation of the nnpdf package hangs or takes a long time, a solution is to use the libmamba solver as explained here. Note that from September '23, or equivalently from conda version 23.9.0, libmamba will be the default solver in conda so after this date updating conda conda update -n base conda should be enough.

binary-bootstrap's People

Contributors

scarlehoff avatar zaharid avatar

Watchers

 avatar  avatar  avatar

binary-bootstrap's Issues

Password

Hi Zahari,

I am trying to install miniconda3 using the script. When I am asked the password of the NNPDF private repository I used the one that is on the NNPDF wiki Bifa**** but it does not seem to work: has it changed?
Cheers

Maria

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.