原创文章,转载请注明: 转载自勤奋的小青蛙
本文链接地址: 【分享】阿里云主机安装Pandas报错:gcc: internal compiler error: Killed (program cc1)
本文链接地址: 【分享】阿里云主机安装Pandas报错:gcc: internal compiler error: Killed (program cc1)
由于阿里云的配置比较低,在安装pandas的时候,竟然报了个错:
internal compiler error: Killed (program cc1plus)
这个错误的主要问题是系统内存不足导致。
解决办法就是增加swap分区 或者 直接升级主机配置(土豪随意)
1. 创建分区文件, 大小 2G
dd if=/dev/zero of=/swapfile bs=1k count=2048000
2. 生成 swap 文件系统
mkswap /swapfile
3. 激活 swap 文件
swapon /swapfile
这样就木有问题了, 但是这样并不能在系统重启的时候自动挂载交换分区, 这样我们就需要修改 fstab.
4. 系统启动挂载swap分区
修改 /etc/fstab 文件, 新增如下内容:
/swapfile swap swap defaults 0 0
这样每次重启系统的时候就会自动加载 swap 文件了.
原创文章,转载请注明: 转载自勤奋的小青蛙
本文链接地址: 【分享】阿里云主机安装Pandas报错:gcc: internal compiler error: Killed (program cc1)
本文链接地址: 【分享】阿里云主机安装Pandas报错:gcc: internal compiler error: Killed (program cc1)
文章的脚注信息由WordPress的wp-posturl插件自动生成
微信扫一扫,打赏作者吧~![[整理]how to run flask with pyqt5](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2021/03/pyqt_flask.png&w=280&h=210&zc=1)
![[已解决]LINK : fatal error LNK1158: cannot run 'rc.exe' 错误的解决办法](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2021/02/Snipaste_2021-02-17_15-18-26-1024x505.png&w=280&h=210&zc=1)
![[已解决]Python扩展模块 error: Unable to find vcvarsall.bat](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2020/11/Snipaste_2020-11-19_10-01-38.png&w=280&h=210&zc=1)
![[整理]PyQt画圆,动态变色](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2020/08/drawCircle.gif&w=280&h=210&zc=1)