Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/297.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在jupyter笔记本中尝试将R与rpy2一起使用时出现UnicodeDecodeError_Python_R_Jupyter Notebook_Rpy2 - Fatal编程技术网

Python 在jupyter笔记本中尝试将R与rpy2一起使用时出现UnicodeDecodeError

Python 在jupyter笔记本中尝试将R与rpy2一起使用时出现UnicodeDecodeError,python,r,jupyter-notebook,rpy2,Python,R,Jupyter Notebook,Rpy2,我试图在同一个笔记本中使用R和python,我遵循了其中的所有步骤,除了从pip安装的rpy2之外(因为.whl方法给出了“rpy2-2.9.5-cp37-cp37m-win_amd64.whl在此平台上不是受支持的轮子。”错误) 在运行此代码的最后一步中: %%R -i df library(ggplot2) 我得到了以下错误日志: ... UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 66: in

我试图在同一个笔记本中使用R和python,我遵循了其中的所有步骤,除了从pip安装的rpy2之外(因为.whl方法给出了“rpy2-2.9.5-cp37-cp37m-win_amd64.whl在此平台上不是受支持的轮子。”错误)

在运行此代码的最后一步中:

%%R -i df 
library(ggplot2)
我得到了以下错误日志:

...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 66: invalid continuation byte

During handling of the above exception, another exception occurred:
...
RInterpreterError: Failed to parse and evaluate line 'library(ggplot2)\n'.
R error message: "'utf-8' codec can't decode byte 0xe9 in position 66: invalid continuation byte"

During handling of the above exception, another exception occurred:
...
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\ABDEL~1.DES\\AppData\\Local\\Temp\\tmpqlksnmtd\\Rplots001.png'
我在anaconda内部有Python 3.8.3、conda 4.9.2、R版本3.6.1,在anaconda外部有R版本4.0