Installation and Getting Started¶
Pythons: Python 3.4, 3.5, 3.6, 3.7
Platforms: Linux/Unix (inluding macOS)
PyPI package name: cortix
Documentation as PDF: download latest
Install cortix
¶
Stable Release (via PyPi)¶
Run the following command in your command line:
pip install --user cortix
Development Version (from source)¶
Clone the repository:
$ git clone https://github.com/dpploy/cortix.git
Install the required dependencies listed in requirements.txt:
$ pip install --user -r cortix/requirements.txt
Add cortix’s parent path to the PYTHONPATH environment variable:
$ export PYTHONPATH=$PYTHONPATH:/path/to/dir/containing/cortix
Note
The path above is NOT the path to cortix
itself, but rather the
path to cortix
’s parent directory. That is, if cortix
exists in
/some/path/cortix
, be sure to add /some/path
to your PYTHONPATH
.
You may want to add this line to your .bashrc
in order for it
to be persistent
Testing your install¶
To test your Cortix install, run the droplet example from the python shell:
>> from cortix.examples.console_run import droplet_run as droplet
>> droplet.run()