我在 RStudio 中运行一个 R 文件,它依赖于另一个 python 文件和几个 python 包。我设法通过Anaconda在python中运行该文件,因为它在RStudio中不起作用,但是当我在RStudio中运行.R文件时仍然出现以下错误。我对 R 和 RStudio 非常陌生,因此对于这个问题的来源的任何帮助将不胜感激。
Error in py_module_import(module, convert = convert) :
ImportError: dlopen(/Users/Berlioz/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/scipy/linalg/_fblas.cpython-36m-darwin.so, 2): Symbol not found: _main
Referenced from: /Users/Berlioz/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/scipy/linalg/_fblas.cpython-36m-darwin.so
Expected in: flat namespace
in /Users/Berlioz/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/scipy/linalg/_fblas.cpython-36m-darwin.so
Detailed traceback:
File "/Library/Frameworks/R.framework/Versions/4.1/Resources/library/reticulate/python/rpytools/loader.py", line 44, in _import_hook
level=level
File "/Users/Berlioz/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/scipy/linalg/__init__.py", line 190, in <module>
from .misc import *
File "/Library/Frameworks/R.framework/Versions/4.1/Resources/library/reticulate/python/rpytools/loader.py", line 44, in _import_hook
level=level
File "/Users/Berlioz/Library/r-mi