| 1 |
Installation instructions for PyCifRW v 5 |
| 2 |
----------------------------------------- |
| 3 |
|
| 4 |
PyCifRW may be installed using Conda, Python pip, |
| 5 |
or directly from source. |
| 6 |
|
| 7 |
Using Conda |
| 8 |
----------- |
| 9 |
If you don't have conda install from either |
| 10 |
Anaconda: https://docs.continuum.io/anaconda/install |
| 11 |
or |
| 12 |
miniconda: https://conda.io/docs/install/quick.html |
| 13 |
|
| 14 |
Then, |
| 15 |
conda install pycifrw -c conda-forge |
| 16 |
|
| 17 |
Now skip to the "Checking the installation" section at |
| 18 |
the end of this document. |
| 19 |
|
| 20 |
Prerequisites for installation from pip or source |
| 21 |
------------------------------------------------- |
| 22 |
|
| 23 |
Python 3.7 or greater must already be installed. Self-installing |
| 24 |
packages for Python (Windows and Mac) are available from |
| 25 |
www.python.org. All Linux distributions come with Python included in |
| 26 |
the base setup. |
| 27 |
|
| 28 |
Use of the optional dREL functionality requires installation of PLY |
| 29 |
(Python Lex Yacc): |
| 30 |
|
| 31 |
pip install ply |
| 32 |
|
| 33 |
and numpy |
| 34 |
|
| 35 |
pip install numpy |
| 36 |
|
| 37 |
Installation |
| 38 |
------------ |
| 39 |
|
| 40 |
(All operating systems) |
| 41 |
|
| 42 |
The latest version can be obtained from the Python Package Index: |
| 43 |
|
| 44 |
pip install pycifrw |
| 45 |
|
| 46 |
(From source) |
| 47 |
|
| 48 |
1. Download and unpack the source distribution file PyCifRW-5.0.tar.gz |
| 49 |
2. In directory PyCifRW-5.0, execute the command |
| 50 |
|
| 51 |
python setup.py install |
| 52 |
|
| 53 |
In Windows this can be accomplished by double-clicking |
| 54 |
the setup.py icon. |
| 55 |
|
| 56 |
Checking the installation |
| 57 |
------------------------- |
| 58 |
|
| 59 |
Start an interactive python interpreter. Type "import CifFile". If |
| 60 |
this command is successful, installation is complete. |