1.1. Installing DataONE Common Library for Python

DataONE Common Library for Python is distributed via PyPI, the Python Package Index.

1.2. Windows

  1. If you do not already have a working 32-bit Python 2.7 environment, download the latest 32-bit Python 2.7 Windows installer from http://www.python.org/download/ and install it.

  2. In Control Panel | Classic View | System | Advanced | Environment Variables, add ;C:\Python27;C:\Python27\Scripts to the end of the Path.

  3. Install pip:

    > python -c "import urllib2; exec(urllib2.urlopen('https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py').read())"
    > easy_install pip
  4. Open a Command Prompt.

  5. Install PyXB:

    $ sudo pip install pyxb==1.2.3
  6. Install the DataONE Common Library for Python and dependencies:

    > pip install dataone.common

1.3. Linux

  1. Install pip (Python package installer):

    $ sudo apt-get --yes install python-pip; sudo pip install pip --upgrade;
  2. Install PyXB:

    $ sudo pip install pyxb==1.2.3
  3. Install the DataONE Common Library for Python and dependencies:

    $ sudo pip install dataone.common

Table Of Contents

Related Topics