Install
Last updated
Was this helpful?
Last updated
Was this helpful?
Let’s start interacting with the python library by firstly installing it & its prerequisites.
From the adventurous Python 3.8.5
all the way up to Python 3.10.4
, ocean.py has got your back! 🚀
While ocean.py
can join you on your Python 3.11
journey, a few manual tweaks may be required. But worry not, brave explorers, we've got all the juicy details for you below! 📚✨ ⚠️ Make sure that you have autoconf
, pkg-config
and build-essential
or their equivalents installed on your host.
ocean.py is a Python library . So after you have completed the prerequisites step, let's create a new console for library installation:
Issue: M1 * coincurve
or cryptography
If you have an Apple M1 processor, coincurve
and cryptography
installation may fail due missing packages, which come pre-packaged in other operating systems.
Workaround: ensure you have autoconf
, automake
and libtool
installed as it is mentioned in the prerequisites, e.g. using Homebrew or MacPorts.
Issue: MacOS “Unsupported Architecture”
If you run MacOS, you may encounter an “Unsupported Architecture” issue.
ocean.py
treats each Ocean smart contract as a Python class, and each deployed smart contract as a Python object. We love this feature, because it means Python programmers can treat Solidity code as Python code! 🤯
Workaround: install including ARCHFLAGS: ARCHFLAGS="-arch x86_64" pip install ocean-lib
. .
Oh, buoy! 🌊🐙 When it comes to installation, ocean.py has you covered with a special README called . It's like a trusty guide that helps you navigate all the nitty-gritty details. So, let's dive in and ride the waves of installation together! 🏄♂️🌊