python - Trouble importing from rpy2.robjects -


i'm relatively new python (anaconda 3.6.0, 64-bit on win10) , i'm having trouble getting play nice r (3.3.2).

i installed rpy2 (ver 2.8.5) using conda install , tried things working in python:

import rpy2 rpy2 import robjects 

but perplexing , unhelpful error message:

traceback (most recent call last):   file "<stdin>", line 1, in <module>   file "c:\users\mdmms\anaconda3\lib\site-packages\rpy2\robjects\__init__.py", line 16, in <module>     import rpy2.rinterface rinterface   file "c:\users\mdmms\anaconda3\lib\site-packages\rpy2\rinterface\__init__.py", line 87, in <module>     _load_r_dll(r_home)   file "c:\users\mdmms\anaconda3\lib\site-packages\rpy2\rinterface\__init__.py", line 64, in _load_r_dll     ctypes.cdll(r_dll)   file "c:\users\mdmms\anaconda3\lib\ctypes\__init__.py", line 344, in __init__     self._handle = _dlopen(self._name, mode) oserror: [winerror 126] specified module not found 

i have looked @ similar threads no avail. please if can, please nice, i'm new on here.

here how managed solve mingwandroid in discussion

  1. open path variable list (open advanced system settings , environment variables , path under user variables)
  2. remove paths assigned anaconda
  3. open anaconda prompt start menu
  4. then add following path variables path

    c:\anaconda; c:\anaconda\library\mingw-w64\bin; c:\anaconda\library\usr\bin; c:\anaconda\library\bin; c:\anaconda\scripts;

  5. now close ide if open , restart ide

    now code should work.

p.s.: had menuist updated suggested in discussion. not sure whether necessary.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -