Python和jupyter notebook安装

目前在学习如何做网络爬虫,由于需要用到Python和jupyter notebook,

win10安装过程如下

本来想在https://www.continuum.io/downloads该网址直接下载windows版本的python,但是由于这是国外的网站,网速很蛋疼

然后就直接在360软件管家中下了(官网下载网速也很蛋疼)

下载后安装过程如下

(http://blog.csdn.NET/dream_an/article/details/50464940可以参照该文章的内容)

1.注意点:勾选添加到path;

《Python和jupyter notebook安装》

1.1如果没有勾选就要自己去配置环境变量。

举例如下

我是win10,右击桌面此电脑——》选择属性——》高级系统设置——》高级里面的环境变量

然后在系统变量中找到path,点击编辑

《Python和jupyter notebook安装》

新建两个,如下图所示

《Python和jupyter notebook安装》

一个找到python35,一个找到Python35下面的scripts文件夹(因为其中有pip)

2.默认下一步

《Python和jupyter notebook安装》

3.勾选全部用户使用(其实也可以不选)

《Python和jupyter notebook安装》

4.检查是否已经安装好pip和setuptool

在CMD中输入python -m pip list

5。在cmd中输入pip install requests 安装失败 报错

6.在cmd中输入pip install beautifulsoup4  下载并安装成功

7.安装Jupyter Notebook

在CMD 中输入pip install jupyter 但是报错

CMD建议要先执行python -m pip install –upgrade pip 还是报错

下载了个蓝灯

再次在CMD输入 pip install jupyter 还是失败

报错内容如下

You are using pip version 8.1.1, however version 9.0.0 is available.

You should consider upgrading via the ‘python -m pip install –upgrade pip’ command.

最后使用了豆瓣的镜像

在cmd中输入

pip install requests -i https://pypi.douban.com/simple  成功

pip install jupyter -i https://pypi.douban.com/simple 成功

然后cmd输入jupyter notebook

《Python和jupyter notebook安装》

(ps:网速慢只能使用这种方法了,虽然是电线光纤100M。)

    原文作者:正反矛盾体
    原文地址: https://www.jianshu.com/p/a9519c4da457
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞