日常笔记
独孤的大山猫
艰苦奋斗
展开
-
ipynb文件转py文件
1、安装好jupyter notebook后执行jupyter nbconvert --to script myprogram.ipynb原创 2021-10-07 09:23:59 · 185 阅读 · 0 评论 -
numpy.core._exceptions.MemoryError
问题背景: np.load() 加载大文件,提示内存不够可能的解决办法(我是这么解决的): 执行的py文件在哪个盘,就给哪个盘分设置完记得点击 设置,然后重启计算机,问题解决。原创 2021-09-26 23:37:31 · 3033 阅读 · 0 评论 -
Not a TBLoader or TBPlugin subclass
参考办法:pip uninstall tensorboard-plugin-wit然后tensorboard可视化结果:tensorboard --logdir= 绝对路径\logs --host=127.0.0.1原创 2021-07-04 14:01:15 · 242 阅读 · 0 评论 -
无效的数值参数“/Wno-cpp”
问题背景:在windows下执行python setup.py build_ext --inplace 提示命令行 error D8021 :无效的数值参数“/Wno-cpp”解决办法:修改编译参数为如下所示:extra_compile_args=[’-std=c99’] # windows编译使用**import numpyfrom distutils.core import setupfrom distutils.extension import Extensionfrom Cytho原创 2021-06-14 06:55:17 · 982 阅读 · 3 评论 -
build_ext --inplace和build_ext install
安装pycocotools的时候,又一个build_ext --inplace和 build_ext install两者的区别:all:# install pycocotools locallypython setup.py build_ext --inplacerm -rf buildinstall:# install pycocotools to the Python site-packagespython setup.py build_ext installrm -rf build原创 2021-06-13 19:55:09 · 772 阅读 · 2 评论