From c166a4f0a5b76d5c74325490f5301a11122ce5f4 Mon Sep 17 00:00:00 2001 From: Grey Li Date: Tue, 9 Nov 2021 14:33:59 +0800 Subject: [PATCH] Improve the installation instruction (#152) Co-authored-by: Yichen Wang <18348405+Aiee@users.noreply.github.com> --- README.md | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 35920cd6..38a49bcd 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,13 @@ Before you start, please read this section to choose the right branch for you. I ## How to get nebula2-python -### Option one: clone from GitHub +### Option one: install with pip + +```python +pip install nebula2-python==$version +``` + +### Option two: install from the source code - Clone from GitHub @@ -49,23 +55,7 @@ cd nebula-python - Install ```python -sudo python3 setup.py install -``` - -When your environment cannot access `pypi`, you need to install the following packages manually. - -``` -pip install -r requirements.txt -``` -dev version -``` -pip install -r requirements-dev.txt -``` - -### Option two: using pip - -```python -pip install nebula2-python==$version +pip install . ``` ## Quick example to use graph-client to connect graphd