!PIP安装NLTK - >没有权限 [英] !pip install nltk -> permission denied

查看:426
本文介绍了!PIP安装NLTK - >没有权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用下面的命令笔记本安装NLTK:

I'm trying to install nltk with the following notebook command:

!pip install nltk

不过,这引发以下错误:

However, that throws the following error:

error: could not create '/usr/local/src/bluemix_ipythonspark_141/notebook/lib/python2.7/site-packages/nltk': 
Permission denied

我怎样才能从Jupyter笔记本NLTK安装?请注意,在bluemix火花环境只能通过笔记本访问。没有她会进入到环境中。

How can I install nltk from the Jupyter notebook? Note that the spark environments on bluemix can only be accessed via the notebook. There isn't she'll access to the environment.

推荐答案

由于问题是关于IPython的笔记本电脑上的 Bluemix ,以下就足够了:

As the question is about IPython notebooks on Bluemix, the following suffices:

!pip install --user nltk

有没有必要操纵的sys.path

这篇关于!PIP安装NLTK - >没有权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆