You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two options for installation: installing from PyPi or installing from source.
29
+
30
+
Be aware that using either route will by default update your `planet` command-line and
31
+
python library to v2, so you will no longer be able to use v1. As v2 is in a pre-release
32
+
stage, with not all functionality implemented, we strongly recommend installing it in a
33
+
virtual environment - either [venv](https://python.land/virtual-environments/virtualenv)
34
+
or [conda](https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html).
35
+
If you've never worked with either then check out our [getting started with venv and Planet
36
+
SDK](docs/venv-tutorial.md). For anyone planning to contribute to the SDK the instructuctions
37
+
are a bit different, see the [testing section of CONTRIBUTING.md](https://github.com/planetlabs/planet-client-python/blob/main/CONTRIBUTING.md#testing).
38
+
39
+
Both installation routes use [pip](https://pip.pypa.io/en/stable/getting-started/), Python's
40
+
package installer.
41
+
42
+
The [--user](https://pip.pypa.io/en/stable/user_guide/#user-installs)
43
+
flag is highly recommended for those new to pip.
44
+
45
+
The Planet SDK for Python requires Python 3.7+.
46
+
47
+
### Installing from PyPi
48
+
49
+
(Note this is not yet working, as the pre-release has not happened yet, but will soon)
50
+
51
+
To get version 2 of the Planet SDK you just use pip with the `--pre` command:
52
+
53
+
```console
54
+
$ pip install planet --pre
55
+
```
56
+
57
+
### Installing from source
58
+
59
+
To install you must [clone](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository)
60
+
the [planet-client-python](https://github.com/planetlabs/planet-client-python) repository
61
+
to your local computer. After you have the repo local just navigate to the root
62
+
directory, where this readme lives.
63
+
64
+
Then you can install locally with pip:
65
+
66
+
```console
67
+
$ pip install .
68
+
```
69
+
70
+
### Confirming its working
71
+
72
+
After installation you should be able to use the command-line interface. Just type
73
+
`planet` into the command-line and the usage and options should appear. If it doesn't
74
+
work don't hesitate to ask for help in the [discussions](https://github.com/planetlabs/planet-client-python/discussions/categories/q-a)
75
+
forum.
76
+
27
77
## Documentation
28
78
29
79
Documentation is currently [hosted online](https://planet-sdk-for-python-v2.readthedocs.io/en/latest/)
30
-
It should be considered 'in progress', with many updated to come. It can also
80
+
It should be considered 'in progress', with many updates to come. It can also
31
81
be built and hosted locally (see [CONTRIBUTING.md](CONTRIBUTING.md)) or can be
32
82
read from source in the `[docs](docs/)` directory.
33
83
@@ -37,9 +87,8 @@ The Planet SDK includes both a Python API and a command-line interface (CLI)
0 commit comments