Coder Social home page Coder Social logo

install_mo_pack_applesilicon's Introduction

Install mo_pack for Apple Silicon

The package mo_pack, needed so that the iris package can unpack the Met Office binary format files, does not currently have a build in conda for arm64. But, we can compile and install our own.

To install, we need to first build and install the package libmo_unpack, more information here.

  • You will need to install the XCode Command Line Tools:
xcode-select install
  • You will need CMake. I got this using Homebrew. Follow the instructions to install homebrew then run:
brew install cmake
brew install check
  • Download and put the script build_libmo_unpack.sh where you want to download the code
  • Run the script by doing ./build_libmo_unpack.sh
  • At the end of this script you will be asked for your sudo password, it will then install the library and tell you where it put it. For me this was in /usr/local/lib and usr/local/include
  • Next download the mo_pack source code:
git clone https://github.com/SciTools/mo_pack
  • cd into mo_pack, activate the conda environment you want to install it in and then run:
python setup.py build_ext -I/usr/local/include -L/usr/local/lib -R/usr/local/lib
pip install -e .

You should be good to go!

install_mo_pack_applesilicon's People

Contributors

andrewpauling avatar

Watchers

James Cloos avatar  avatar

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.