From c82194fe64775bbf460a3b850479d471c4f70d9a Mon Sep 17 00:00:00 2001 From: Jesse McNichol <5956604+jcmcnch@users.noreply.github.com> Date: Thu, 11 Jun 2020 10:17:04 -0700 Subject: [PATCH] Update pycmap_install.rst pip install instructions did not work for me due to issues with python versions. Added install instructions that worked for me on Ubuntu 19.10 in a python3 conda environment. --- user_guide/API_ref/pycmap_api/pycmap_install.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/user_guide/API_ref/pycmap_api/pycmap_install.rst b/user_guide/API_ref/pycmap_api/pycmap_install.rst index bfc0326..4905098 100644 --- a/user_guide/API_ref/pycmap_api/pycmap_install.rst +++ b/user_guide/API_ref/pycmap_api/pycmap_install.rst @@ -30,7 +30,22 @@ pycmap can be installed using pip: pip install pycmap +You may find the above command installs pycmap to python2. Since pycmap requires python3, this causes issues. If this happens to you, try the following commands: +.. code-block:: shell + + python3 -m pip install pycmap + python3 -m pip install IPython + +To test your installation, one easy way is to go into a python interactive shell and try importing the module: + +.. code-block:: shell + + $ python3 + >>> import pycmap + >>> + #if you get no errors after importing (as above), then you are good to go! + In order to use pycmap, you will need to obtain an API key from https://simonscmap.com/apikeymanagement.