安装软件、软件报错处理记录

windows下python 3.6 no module named ‘pip’ , pip3 安装和更新packages的时候出现权限拒绝报错。

  • 首先恢复pip,参见知乎 pip3使用异常? No module named pip?

    python -m ensurepip
    

    或者

    python -m pip install --upgrade pip
    
  • 其次在安装或者更新命令后面加上 –user , 例如

    pip3 install --upgrade matplotlib --user
    

IRkernel 安装

  • 在 R 语言里面运行以下命令
install.packages('devtools')
devtools::install_github('IRkernel/IRkernel')
# or devtools::install_local('IRkernel-master.tar.gz')
IRkernel::installspec()  # to register the kernel in the current R installation
  • 使用 IRkernel::installspec() 会将电脑默认版本的R语言设置为 jupyter notebook 的 kernel。
    如果指定 R 语言版本,在 IRkernel::installspec() 里面添加参数即可 ↓
# in R 3.3
IRkernel::installspec(name = 'ir33', displayname = 'R 3.3')
  • 在 cmd 窗口启动
# “ir” is the kernel name installed by the above `IRkernel::installspec()`
# change if you used a different name!
jupyter qtconsole --kernel=ir # 打开新的 jupyter qtconsole 窗口
jupyter console --kernel=ir # 在运行的窗口打开 jupyter console
  • 在浏览器打开 jupyter notebook
jupyter-notebook

IRkernel

更多安装操作参见:https://github.com/IRkernel/IRkernel

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值