点滴
delta_hell
这个作者很懒,什么都没留下…
展开
-
pybind11以及打包学习
pybind11以及打包学习 前言 最近在看fasttext,看到使用pybind11把c++代码封装了一下,然后打包后安装,python可以直接调用,非常方便,有点兴趣,手动试了简单例子,本篇没啥干货,简单记录下实现过程。 一 pybind11 c/c++代码都是用pybind11封装,可以直接用pip安装即可,官方给出的入门示例十分简单: #include <pybind11/pybind11.h> int add(int i, int j) { return i + j; } P原创 2020-07-02 22:27:10 · 3153 阅读 · 0 评论 -
【点滴】MYSQL安装
Ubuntun 16.04安装mysql时遇到几个问题,记录一下: 1、 无用户名密码提示 /etc/mysql/debian.cnf,在这里找到用户名密码登录,然后修改root密码 update mysql.user set authentication_string=password(‘password’) where user='root’and Host = ‘localhost’; 还要...原创 2019-09-21 20:53:21 · 143 阅读 · 0 评论