[英]Jupyter doesn't work when “setup.py” is used
I tried to install Jupyter on my Mac (10.9). 我试图在Mac(10.9)上安装Jupyter。
Since I'm using a computer at the university and don't have permission to write in /usr/local/bin
, I downloaded Ipython from GitHub and typed python3.4 setup.py install --user
on Terminal. 由于我在大学使用的是计算机,并且没有写
/usr/local/bin
权限,因此我从GitHub下载了Ipython,并在Terminal 上键入了python3.4 setup.py install --user
。
Though I didn't get any error while installing, Jupyter does not launch when I type ipython notebook
( ipython3 notebook
or jupyter
were the same) and I got command not found
error. 尽管安装时没有出现任何错误,但是当我键入
ipython notebook
( ipython3 notebook
或jupyter
相同),Jupyter不会启动,并且我发现command not found
错误。
(I also tried to install via pip. However, pip does not work on my computer and I couldn't activate it using ensurepip
.) (我也尝试通过pip进行安装。但是,pip在我的计算机上不起作用,并且无法使用
ensurepip
激活它。)
Why does pip not work? 点子为什么不起作用? (insufficient privileges to write into system packages)?
(特权不足,无法写入系统软件包)?
Have you tried a virtual environments Creation of virtual environments ? 您是否尝试过虚拟环境创建虚拟环境 ? They are very useful for managing your environment so that you have local packages and a local bin folder for things like
ipython
: 它们对于管理您的环境非常有用,因此您拥有用于
ipython
类的本地软件包和本地bin文件夹:
$ python3 -m venv my_venv
$ source my_venv/bin/activate
$ pip install ipython[all]
This will install into your my_venv
environment. 这将安装到您的
my_venv
环境中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.