随意的开头
今天在运行程序的时候遇到很多困难,有环境配置方面,也有Linux系统下的进程方面。就是总结一下方便以后的遗忘查看。
关于python环境
- one
在安装python模块包的时候,有时候会遇到如下情况:
Cannot install 'xxx' . It is a distutils installed project and thus we cannot
accurately determine which files belong to it which would lead to only a partial
uninstall.
此时的解决方法为:pip install xxx --upgrade --ignore-installed xxx
- two
有时候已经安装好包,会因为安装 不完整导致出错。
e.g.
cannot import name doccer
此时需要继续安装 通过命令行 pip install --force-reinstall scipy
will be oK
关于Linux的进程
在执行一个训练model的程序中,会导致程序被killed掉
查找资料发现是应为系统内存不足以支持程序运行 由Linux内核发起的保护机制。
journalctl -xb | egrep -i 'killed process'
通过执行该命令,可以查看被kill掉的进程
相关部分说明:
total-vm:进程总共使用的虚拟内存;
anon-rss:虚拟内存实际占用的物理内存;
file-rss:虚拟内存实际占用的磁盘空间
这就说明要运行这个程序就需要扩大系统内存或者是优化程序了
Linux运行在我这个菜鸡的虚拟机上,带不动啊
暴风雨中哭泣
time 23:00 date 2019.3.16 - Hurry Up!布吉