tidyverse 报错 namespace ‘tibble’ 1.4.2 is being loaded, but >= 2.0.0 is required

报错信息

Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 namespace ‘tibble’ 1.4.2 is being loaded, but >= 2.0.0 is required

解决方法

使用conda进行安装, 解决了我的问题:

conda install -c r r-tidyverse

结果:

(base) [dengfei@localhost ~]$ conda install -c r r-tidyverse 
Collecting package metadata: done
Solving environment: | 
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - defaults/linux-64::mkl-service==1.1.2=py37h90e4bf4_5
  - defaults/linux-64::numpy-base==1.15.1=py37h81de0dd_0
  - defaults/linux-64::odo==0.5.1=py37_0
  - defaults/linux-64::bokeh==0.13.0=py37_0
  - defaults/linux-64::bottleneck==1.2.1=py37h035aef0_1
  - defaults/linux-64::datashape==0.5.4=py37_1
  - defaults/linux-64::h5py==2.8.0=py37h989c5e5_3
  - defaults/linux-64::imageio==2.4.1=py37_0
  - defaults/linux-64::matplotlib==2.2.3=py37hb69df0a_0
  - defaults/linux-64::mkl_fft==1.0.4=py37h4414c95_1
  - defaults/linux-64::mkl_random==1.0.1=py37h4414c95_1
  - defaults/linux-64::numba==0.39.0=py37h04863e7_0
  - defaults/linux-64::numexpr==2.6.8=py37hd89afb7_0
  - defaults/linux-64::pytest-arraydiff==0.2=py37h39e3cac_0
  - defaults/linux-64::pytest-doctestplus==0.1.3=py37_0
  - defaults/linux-64::pywavelets==1.0.0=py37hdd07704_0
  - defaults/linux-64::scipy==1.1.0=py37hfa4b5c9_1
  - defaults/linux-64::bkcharts==0.2=py37_0
  - defaults/linux-64::dask==0.19.1=py37_0
  - defaults/linux-64::patsy==0.5.0=py37_0
  - defaults/linux-64::pytables==3.4.4=py37ha205bf6_0
  - defaults/linux-64::pytest-astropy==0.4.0=py37_0
  - defaults/linux-64::scikit-image==0.14.0=py37hf484d3e_1
  - defaults/linux-64::scikit-learn==0.19.2=py37h4989274_0
  - defaults/linux-64::astropy==3.0.4=py37h14c3975_0
  - defaults/linux-64::statsmodels==0.9.0=py37h035aef0_0
  - defaults/linux-64::blaze==0.11.3=py37_0
  - defaults/linux-64::seaborn==0.9.0=py37_0
  - defaults/linux-64::anaconda==5.3.0=py37_0                                                           - 

                                                                                                        done

# All requested packages already installed.

(base) [dengfei@localhost ~]$ 
(base) [dengfei@localhost ~]$ 
(base) [dengfei@localhost ~]$ 
(base) [dengfei@localhost ~]$ R

R version 3.5.1 (2018-07-02) -- "Feather Spray"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

libMicrosoft R Open 3.5.1
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2018 Microsoft Corporation

Using the Intel MKL for parallel mathematical computing (using 16 cores).

Default CRAN mirror snapshot taken on 2018-08-01.
See: https://mran.microsoft.com/.

r> library(tidyverse)
── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
✔ ggplot2 3.0.0       ✔ purrr   0.2.5  
✔ tibble  2.1.1       ✔ dplyr   0.8.0.1
✔ tidyr   0.8.1       ✔ stringr 1.3.1  
✔ readr   1.1.1       ✔ forcats 0.3.0  
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()

搞定!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值