
python
python相关博文
依笑奈何
这个作者很懒,什么都没留下…
展开
-
Jetson Nano编译安装带cuda的opencv4.x 和opencv_contrib4.x
1.卸载自带的opencv#通过dpkg -l查看所安装的opencv库 dpkg -l | grep -i opencv#看到相关的opencv就可以用apt-get来卸载了#移除相关libopencv库 sudo apt-get remove libopencv*2.下载opencv和opencv_contribgit clone https://gitee.com/mirrors/opencv.gitgit clone https://gitee.com/mirror..原创 2020-08-16 12:46:31 · 2883 阅读 · 3 评论 -
dlib安装错误及解决(c++: internal compiler error: Killed (program cc1plus))
主要原因大体上是因为内存不足,有点坑 临时使用交换分区来解决吧sudo dd if=/dev/zero of=/swapfile bs=64M count=16sudo mkswap /swapfilesudo swapon /swapfile编译完之后恢复sudo swapoff /swapfilesudo rm /swapfile原创 2020-08-10 22:07:43 · 564 阅读 · 0 评论 -
scipy安装错误及解决(libraries mkl_rt not found)
pip 安装 scipy 时,因为是编译安装,所以如果缺少一些编译库,会报很多错误,以下总结可能缺失的安装包:sudo apt-get install gfortransudo apt-get install libopenblas-devsudo apt-get install liblapack-devsudo apt-get install libatlas-base-devsudo apt-get install libblas-dev然后 sudo pip install原创 2020-08-09 16:39:52 · 8217 阅读 · 2 评论 -
通过sphinx将.rst格式文件转换为.html格式(ubuntu环境)
第一步:安装python第二步安装sphinxpip3 install sphinx第三步mkdir rst && cd rst执行sphinx-quickstartrst目录下生成如下文件列表buildsourcemake.batMakefile执行make html则在build文件夹下生成index....原创 2019-10-17 23:59:50 · 1554 阅读 · 0 评论 -
Zephyr应用笔记:Python实现JLink下载程序脚本
python脚本内容:#!/usr/bin/env python3## Copyright (c) 2018 Noitom## SPDX-License-Identifier: Apache-2.0import argparseimport osimport tempfileimport subprocessdef do_jlink(args): lines = ['r'] # Re...原创 2018-04-26 16:05:07 · 2349 阅读 · 0 评论 -
Zephyr应用笔记:micropython编译测试
准备工作Zephyr:https://github.com/zephyrproject-rtos/zephyrmicropython:https://github.com/micropython/micropython开发板:stm32f4_disco搭建开发环境搭建Zephyr开发环境(参考:https://docs.zephyrproject.org/latest/)...原创 2019-09-11 14:46:51 · 1160 阅读 · 0 评论