jupyter notebook安装

jupyter notebook是一个笔记本式的工具,很方便修改代码,可视性很好。

我目前用它来写爬虫

1。安装

它的安装常常会碰到问题,依赖的问题

pip install jupyter notebook
我上一次安装时出现,在某个依赖安装过程中,卡住了。

关闭,重新输入命令,到这个包时,又卡住。(看来是这个包安装出错)

pip install 包名
这个包安装好后,继续

pip install jupyter notebook
然后就安装好了。


2.在cmd中输入jupyter notebook 即可打开(网上都这么说的)

但是我碰到问题

Could not decode 'C:\\Users\\\xce\xf7\xb9\xcf\\.jupyter' for unicode trait 'config_dir' of a NotebookApp instance.

我在下面的帖子中提过问,问题已经完美解决了

http://bbs.csdn.net/topics/392074366


3.这一次,电脑重装了系统

重新安装jupyter notebook,出现了新的问题:

error: Unable to find vcvarsall.bat

报错信息:

Command "C:\Python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\\xce\xf7\xb9\xcf\\appdata\\local\\temp\\pip-build-b5biqi\\scandir\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\西瓜\appdata\local\temp\pip-zkpcgx-recor
d\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\西瓜\appdata\lo
cal\temp\pip-build-b5biqi\scandir\

按照1中方法,输入命令

pip install scandir

无效

pip install vcvarsall

无效

百度找到解决方法https://www.biaodianfu.com/python-error-unable-to-find-vcvarsall-bat.html(方法4比较简洁,亲测可行)

解决方法:

先安装好wheel:pip install wheel

寻找对应的.whl文件下载下来:

http://www.lfd.uci.edu/~gohlke/pythonlibs/

在该页面上搜索scandir,找到有这样的结果


找一个适合的版本下载安装,32位还是64位,取决于你的python版本(不是电脑版本)

安装方法:切换到该文件所在目录

pip install 包名.whl
然后scandir就安装好了


再执行jupyter notebook的安装命令

pip install jupyter notebook

完美解决!





  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值