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:\飞秋数据\视频+课件\Python基础nick
jupyter notebook

补充

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

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

fatal

python3 -m pip

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

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

最新文章

  1. nfs配置注意点
  2. 为什么.Net要求序列化的类必须有一个无参数的构造函数
  3. 微软开放WP开发者回复用户应用评论功能
  4. [ie兼容]ie7 margin-bottom失效
  5. java String部分源码解析
  6. 【转】介绍设置Session失效的几种方法
  7. 【测试】使用hr用户下的employees和departments表写一条SQL语句,(MG连接)
  8. 【转】怎么在Foxmail回复/转发时使用签名?
  9. redis(1)
  10. 《C++程序设计语言(十周年纪念版)》【PDF】下载
  11. Web.xml中四种验证方式
  12. vue页面无操作10分钟内调转到登录页面
  13. Redis集群部署及命令
  14. 使用memcache对wordpress优化,提速
  15. com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value 'Öйú±ê׼ʱ¼
  16. CSS中的各种width(宽度)
  17. Environment.GetEnvironmentVariable
  18. HDU 5861 Road 线段树区间更新单点查询
  19. 【bzoj2870】最长道路tree 树的直径+并查集
  20. 在Ninject 向构造参数中注入具有相同类型的参数

热门文章

  1. mysql时区错误问题及命令行登录mysql方法
  2. class一些内置方法
  3. sql 注入例子及防止
  4. Python IO编程-读写文件
  5. oracle schema彻底理解
  6. No unique bean of type [net.shougongfang.action.paymoney.AlipayPayMoneyReturnObj] is defined: Unsat
  7. ZooKeeper分布式集群部署及问题
  8. Linux系统编程——多线程实现多任务
  9. fgets()函数和sscanf()函数的使用方法
  10. Codeforces 456B Fedya and Maths 打表找规律