jupyter的安装

  1. 3.6:\Lib\site-packages\pip\models\index.py

    # PyPI = Index('https://pypi.python.org/')
    # 替换成
    PyPI = Index('https://pypi.douban.com/')

    3.7:\Lib\site-packages\pip\models\index.py
    # PyPI = PackageIndex(
    # 'https://pypi.org/', file_storage_domain='files.pythonhosted.org'
    # )
    # 替换成
    PyPI = PackageIndex(
    'https://pypi.douban.com/', file_storage_domain='files.pythonhosted.org'
    )

    1. C:\Users[username]\pip
    2. 新建pip.ini
    3. 在pip.ini中添加:
      [global]
      index-url = http://mirrors.aliyun.com/pypi/simple/
      [install]
      trusted-host=mirrors.aliyun.com

pip3 install jupyter 或 python3 -m pip install jupyter
pip3 install jupyter_contrib_nbextensions 或 python3 -m pip install

jupyter_contrib_nbextensions

pip3 install jupyter_contrib_nbextensions安装成功后输入:jupyter contrib nbextension

install --user

上述命令三条安装成功后:

cd D: jupyter notebook

补充

添加环境变量是为了cmd输入python能够找到python.exe

python ---> python.exe
pip ---> pip.exe

fatal

python3 -m pip

python相当于手机pip相当于应用商城 install(安装) jupyter(软件)

镜像源:下载软件从一个地方把软件,python默认是去国外的网址上拿,换了个镜像源,以后我们下载

东西在国内拿

转载于:https://www.cnblogs.com/fengxuemuyangren/p/10895300.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值