OSError: cannot load library 'C:\Program Files\R\R-4.0.2\bin\x64\R.dll': error 0x7e

前端 未结 2 390
夕颜
夕颜 2020-11-30 15:04

I am trying to import the rpy2 library into a Jupyter Notebook but I cannot get past this error.

The PATH \'C:\\Program Files\\R\\R-4.0.2\\bin\\x64\' has been added.<

2条回答
  •  心在旅途
    2020-11-30 15:28

    I found a solution here.

    Adding the PATH

    C:\Users\username\Anaconda2;C:\Users\username\Anaconda2\Scripts;C:\Users\username\Anaconda2\Library\bin;C:\Users\username\Anaconda2\Library\mingw-w64\lib;C:\Users\username\Anaconda2\Library\mingw-w64\bin

    and subsequently restarting Anaconda fixed the issue.

提交回复
热议问题