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

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

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

    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

猜你喜欢

转载自blog.csdn.net/m0_37952030/article/details/80375489