目录
【问题】MemoryError(pycharm 下运行报错)
参考:win10 pycharm 出现MemoryError 和 Unable to allocate array with shapel 与
成功解决Windows MemoryError: Unable to allocate 6.38 GiB for an array with shape (38
即:
- 采用更低精度的数据类型;
- 修改pycharm的运行内存;
- 重新分配磁盘内存;其中磁盘大小的设定可参考:虚拟内存越大电脑运行速度会越快么、电脑的虚拟内存越大越好吗
除以上外,
4. 调整文件读取方式。参考:
解决Python memory error的问题(四种解决方案)
Python学习:numpy库 数据量太大出现Memory Error问题的解决方法汇总
matlab内存不足:也可用上述[3]重新分配磁盘内存的方法解决。
【问题】module ‘pip’ has no attribute ‘pep425tags’
(先参考了 https://lanzao.blog.csdn.net/article/details/88062405 ,但其中方法对本机不见效)
最终参考:https://www.cnblogs.com/diffx/p/11780178.html
import wheel.pep425tags as w
print(w.get_supported())
问题得到解决。
【问题】Building wheel for xxx (setup.py) … error
参考:
https://blog.csdn.net/weixin_34310127/article/details/86467709
https://blog.csdn.net/weixin_45556441/article/details/110483622
由于电脑已有的python环境为32位,而所找的lightgbm库均为64位。
安装新的64位python环境+参考上述文章,问题得到解决。
备忘:20210114