Installing Pipcook

There are different ways to install Pipcook:

  • Install via NPM. This is the best approach for most users. It will provide a stable version and pre-built packages are available for most platforms.
  • Build from source. This is best for users who want the latest-and-greatest features and aren’t afraid of running a brand-new code. This is also needed for users who wish to contribute to the project.

Before starting the installation, please make sure the following environments are correct:

  • macOS, Linux
  • Node.js 12

Install via NPM

Installing Pipcook via NPM is easy, just run:

  1. $ npm install -g @pipcook/pipcook-cli

Then check if installed via pipcook --help.

Install via Docker

Install Pipcook Dockerfile. Then open Dockerfile’s path and install the docker image.

  1. $ git clone https://github.com/alibaba/pipcook.git && cd pipcook/docker
  2. $ docker build -t alibaba/pipcook .

Check if the docker image is installed successfully.

  1. $ docker images
  2. REPOSITORY TAG IMAGE ID CREATED SIZE
  3. alibaba/pipcook latest c297c73d62d4 7 hours ago 3.67GB

And run:

  1. $ docker run -it --name pipcook_test alibaba/pipcook /bin/bash

Troubleshooting

If you have any installation problems, please feedback to issue tracker.