zoukankan      html  css  js  c++  java
  • jupyter notebook(python version 3.6.5)

    • 1.1 安装 jupyter notebook:
    pip.exe install jupyter notebook -i  https://mirrors.aliyun.com/pypi/simple/

    注:

    -i 可选,可以搜索“python 镜像源”,指定其他的镜像

    • 1.2 遇到的错误

    错误1:Unknown or unsupported command 'install'

    pip install jupyter notebook -i https://mirrors.aliyun.com/pypi/simple/
    Unknown or unsupported command 'install'

    原因是装了多个pip, 写成pip.exe加以区分。

    where pip
    C:Dwimperlperlinpip
    C:Dwimperlperlinpip.bat
    C:UsersehunjngAppDataLocalProgramsPythonPython36Scriptspip.exe


    错误2:提示缺少c++编译器

    Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/ Tools":

    搜索的解决方法:

    1) python -m pip install --upgrade pip

    2) pip.exe install C:simpleaudio-1.0.4-cp37-cp37m-win_amd64.whl(找对应python版本的安装包 https://pypi.org/project/simpleaudio/#files

    3) 在线安装Microsoft Visual c++14.0 (可以在program and features里确认下是否安装)

    image

    云主机上没有安装, 在线安装Microsoft Visual C++ Build Tools, 安装不上。最后 使用1)解决问题。


    • 2.1 安装 jupyter notebook的代码提示插件jupyter_contrib_nbextensions
    pip.exe install jupyter_contrib_nbextensions -i https://mirrors.aliyun.com/pypi/simple/
    jupyter contrib nbextension install --user
    jupyter notebook

     

    • 2.2 遇到的错误:
    File "c:usersadminappdatalocalprogramspythonpython36libsite-packagesIPythoncorecompleter.py", line 2030, in _complete
        cursor_pos, cursor_line, full_text)
      File "c:usersadminappdatalocalprogramspythonpython36libsite-packagesIPythoncorecompleter.py", line 1374, in _jedi_matches
        text[:offset], namespaces, column=cursor_column, line=cursor_line + 1)
      File "c:usersadminappdatalocalprogramspythonpython36libsite-packagesjediapi\__init__.py", line 726, in __init__
        project=Project(Path.cwd()), **kwds)
    TypeError: __init__() got an unexpected keyword argument 'column'

    jedi库版本不对,退回到0.17解决问题

    pip.exe install jedi==0.17


    • 3.1使用

    new—>python3

    在每一个格子输入代码,然后点击run,会有代码运行结果

    image

  • 相关阅读:
    【阿里云产品公测】云引擎ACE新手实战基于Wordpress
    【阿里云产品公测】结构化数据服务OTS之JavaSDK初体验
    洗牌算法详解
    常用的位操作
    字符串乘法
    如何运用二分查找算法
    递归详解
    判断回文链表
    子集、排列、组合问题汇总
    接雨水问题详解
  • 原文地址:https://www.cnblogs.com/gracejiang/p/15408741.html
Copyright © 2011-2022 走看看