2016-04-23 141 views
2

編輯:使用PIP安裝IPython的筆記本

根據畫中畫網站(https://pip.pypa.io/en/stable/installing),我應該已經PIP我的Python版本2.9.7安裝,但我認爲我不要因爲錯誤的信息。

然後我試圖通過下載get-pip.py來安裝pip。這是成功的,但我得到了消息:

Found existing installation: pip 1.3.1 
Uninstalling pip-1.3.1: 
Successfully uninstalled pip-1.3.1 
Successfully installed pip-8.1.1 wheel-0.29.0 

所以看起來我有一個版本點子的,所以我不知道爲什麼我得到在我原來的職位描述的錯誤消息。

但是,當我試圖然後點子安裝jupyter,我只是得到:

-bash: pip: command not found 

一次。有人能告訴我我做錯了嗎?


我需要安裝iPython Notebook。我已經在我的Macbook上安裝了Python(2.7.9版本),運行OS X(版本10.7.5)。

經過一些初步的調查,我看到有人說,我可以只運行:

pip install "ipython[notebook]" 

當我做這個但是,我得到:

-bash: pip: command not found 

所以我必須先安裝PIP ?然後用pip來安裝Notebook?我超出了我的深度,有點困惑!

+2

是的,你需要安裝點子。信息在這裏:https://pip.pypa.io/en/stable/installing/ – jakevdp

+1

請注意,IPython筆記本已更名爲Jupyter Notebook。您仍然可以[安裝它](http://jupyter.readthedocs.org/en/latest/install.html#existing-python-new-jupyter)與pip:'pip install jupyter'。 –

回答

0

好吧,所以我的問題是安裝了點子,但是沒有包含在我的$ PATH變量中。

其中一個答案here是相關的。