您的位置:首页 > 其它

jupyter notebook安装

2017-01-18 20:05 435 查看
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

完美解决!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: