在Jupyter Notebook中将R作为内核安装时出现问题

时间:2020-03-02 01:03:28

标签: r jupyter-notebook

我正在尝试将R作为jupyter笔记本的内核安装。我遵循以下说明:https://irkernel.github.io/installation/,但是当我尝试安装IRkernel时,我得到了:

also installing the dependency 'uuid'

trying URL 'https://cran.mtu.edu/src/contrib/uuid_0.1-4.tar.gz'
Content type 'application/x-gzip' length 49544 bytes (48 KB)
==================================================
downloaded 48 KB

trying URL 'https://cran.mtu.edu/src/contrib/IRkernel_1.1.tar.gz'
Content type 'application/x-gzip' length 52805 bytes (51 KB)
==================================================
downloaded 51 KB

* installing *source* package 'uuid' ...
** package 'uuid' successfully unpacked and MD5 sums checked
** using staged installation
checking for gcc... x86_64-apple-darwin13.4.0-clang
checking whether the C compiler works... no
configure: error: in `/private/var/folders/y2/38gkkc0s7d52_mr_s6zfj7m80000gq/T/Rtmpru6fsM/R.INSTALL92f935860c3f/uuid':
configure: error: C compiler cannot create executables
See `config.log' for more details
ERROR: configuration failed for package 'uuid'
* removing '/anaconda3/lib/R/library/uuid'
ERROR: dependency 'uuid' is not available for package 'IRkernel'
* removing '/anaconda3/lib/R/library/IRkernel'

The downloaded source packages are in
    '/private/var/folders/y2/38gkkc0s7d52_mr_s6zfj7m80000gq/T/Rtmpg79DeD/downloaded_packages'
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning messages:
1: In install.packages("IRkernel") :
  installation of package 'uuid' had non-zero exit status
2: In install.packages("IRkernel") :
  installation of package 'IRkernel' had non-zero exit status

有人可以告诉我这个问题吗?强调文字

0 个答案:

没有答案