前些天突然好奇自己的安卓手机上,能不能运行python程序,于是百度了几款APP,这篇文章对这几款APP做了详细的介绍:
安卓手机运行python程序的软件:Termux、Pydroid3
因为正在学习Machine Learning,所以希望要安装的这款APP,支持numpy、pandas、matplotlib、sklearn等科学计算库,尤其要支持jupyter notebook。基于这篇文章的介绍,我选择安装pydroid3。
【神器】APP推荐 比QPython还好用的手机Python编辑器Pydroid
pydroid3在这个网址上下载,安装过程不再赘述,接下来介绍jupyter notebook的搭建过程。
Pydroid 3 - Educational IDE for Python 3
1. 安装各个库
打开pydroid3,按照图中红框示意的步骤,安装jupyter、numpy、pandas、matplotlib、sklearn、scipy等库。



2. 启动jupyter notebook

输入jupyter notebook,点换行

jupyter服务启动

长按屏幕,弹出选项窗口,点“copy all”

此时,屏幕上方会弹出“立即访问...”,点击

即在默认浏览器中打开jupyter notebook

还有个有意思的地方,因为手机屏幕毕竟不大,直接用手机的输入法,键盘就会遮住一般的屏幕,只剩下一半屏幕用来编辑代码,让人不爽。此时,外接一个蓝牙键盘,整个屏幕让人清爽很多。不过,蓝牙键盘配上安卓系统,一些快捷键就不能用了,尤其是没有切换到命令模式的“ESC”,很不方便,这可以通过修改快捷键解决。

希望看完这篇文章,爱动手的你也能尝试下。
网友评论