Skip to content

Commit a7c1cb2

Browse files
authored
Merge pull request #24 from openkim/devel
Update installation guide
2 parents bbfb3be + eeff93c commit a7c1cb2

File tree

1 file changed

+12
-71
lines changed

1 file changed

+12
-71
lines changed

README.md

Lines changed: 12 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -9,90 +9,31 @@ kimpy is a Python interface to the [KIM API](https://openkim.org/kim-api).
99

1010
## Installing kimpy
1111

12-
### Requirements
12+
`kimpy` requires [KIM AIP](https://openkim.org/kim-api/) and `Python 3.7` or later.
1313

14-
- KIM API 2 package
15-
16-
To install `kimpy`, you need [KIM API](https://openkim.org/kim-api). The
17-
easiest option for obtaining the KIM API is to install the `kim-api`
18-
pre-compiled binary package for your preferred operating system or package
19-
manager. See
20-
[Obtaining KIM Models](https://openkim.org/doc/usage/obtaining-models) for
21-
instructions to install the KIM API and the models from OpenKIM on your system.
22-
23-
You can
24-
[install](https://openkim.org/doc/usage/obtaining-models#installing_api)
25-
the KIM API from source.
26-
27-
- Python 3.6 or later
28-
29-
You need Python 3.6 or later to run `kimpy`. You can have multiple
30-
Python versions (2.x and 3.x) installed on the same system without problems.
31-
32-
To install Python 3 for different Linux flavors, macOS and Windows, packages
33-
are available at\
34-
[https://www.python.org/getit/](https://www.python.org/getit/)
35-
36-
### Using pip
37-
38-
**pip** is the most popular tool for installing Python packages, and the one
39-
included with modern versions of Python.
40-
41-
`kimpy` can be installed with `pip`:
42-
43-
```sh
44-
pip install kimpy
45-
```
46-
47-
**Note:**
48-
49-
Depending on your Python installation, you may need to use `pip3` instead of
50-
`pip`.
51-
52-
```sh
53-
pip3 install kimpy
54-
```
55-
56-
Depending on your configuration, you may have to run `pip` like this:
57-
58-
```sh
59-
python3 -m pip install kimpy
60-
```
61-
62-
### Using pip (GIT Support)
14+
### Using conda
6315

64-
`pip` currently supports cloning over `git`
16+
The recommended (and the easiest) way to install `kimpy` is to use the conda package manager to install both the KIM API and kimpy from the conda-forge channel.
6517

6618
```sh
67-
pip install git+https://github.com/openkim/kimpy.git
19+
conda install -c conda-forge kim-api kimpy
6820
```
6921

70-
For more information and examples, see the
71-
[pip install](https://pip.pypa.io/en/stable/reference/pip_install/#id18)
72-
reference.
73-
74-
### Using conda
75-
76-
**conda** is the package management tool for Anaconda Python installations.
22+
### Using pip
7723

78-
Installing `kimpy` from the `conda-forge` channel can be achieved by adding
79-
`conda-forge` to your channels with:
24+
This requires that the KIM API alreay be installed on your system. See the KIM-API [docs](https://openkim.org/kim-api/) for instructions on how to do this.
8025

8126
```sh
82-
conda config --add channels conda-forge
27+
pip install kimpy
8328
```
8429

85-
Once the `conda-forge` channel has been enabled, `kimpy` can be installed with:
86-
87-
```sh
88-
conda install kimpy
89-
```
30+
### From source
9031

91-
It is possible to list all of the versions of `kimpy` available on your
92-
platform with:
32+
This also requires that the KIM API alreay be installed on your system. See above.
9333

9434
```sh
95-
conda search kimpy --channel conda-forge
35+
git clone https://github.com/openkim/kimpy.git
36+
pip install -e ./kimpy
9637
```
9738

9839
## Example
@@ -184,7 +125,7 @@ For exampe:
184125
185126
## Copyright
186127
187-
Copyright (c) 2017-2021, Regents of the University of Minnesota.\
128+
Copyright (c) 2017-2023, Regents of the University of Minnesota.\
188129
All Rights Reserved
189130
190131
## Contributing

0 commit comments

Comments
 (0)