title: Importing python module in R
body: <p>I am trying to import a python module in R using the <code>reticulate</code> package. The module can be found <a href="https://github.com/nchavoshi/debot_api" rel="noreferrer">here</a>. I cloned the repository and ran <code>python setup.py install</code> which ran successfully. If I open a python shell, I'm able to import <code>debot</code>. However, when I try to import it in RStudio, I get the following error:</p>
  
  <pre><code>dbot=import("debot")
  Error in py_module_import(module, convert = convert) : 
    ImportError: No module named debot
  </code></pre>
  
  <p>I am on macOS Sierra version 10.12.6 and installed python 3.6 through Anaconda. I have also tried giving the path to python as:</p>
  
  <pre><code>path_to_python &lt;- "/anaconda/bin/python3.6"
  use_python(path_to_python)
  </code></pre>
  
  <p>When I run python from a terminal, I get:</p>
  
  <pre><code>Python 3.6.1 |Anaconda 4.4.0 (x86_64)| (default, May 11 2017, 13:04:09) 
  [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
  Type "help", "copyright", "credits" or "license" for more information.
  </code></pre>
  
  <p>Not sure if the path to python is correct.</p>
  
  <p>Ok, did some more digging around and discovered that <code>reticulate</code> still refers to my older python path for python 2.7 which came as default with my Macbook. When I run <code>py_config()</code>, this is what I get:</p>
  
  <pre><code>python:         /usr/bin/python
  libpython:      /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib
  pythonhome:     /System/Library/Frameworks/Python.framework/Versions/2.7:/System/Library/Frameworks/Python.framework/Versions/2.7
  version:        2.7.10 (default, Feb  7 2017, 00:08:15)  [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
  </code></pre>
  
  <p>No matter what I try but I can't get <code>reticulate</code> to look at the correct path where the module has been installed using the <code>use_python()</code> function. I do believe this is an issue with <code>reticulate</code>. Any ideas what my next steps should be?</p>