- 博客(15)
- 收藏
- 关注
原创 解决问题:安装conda后,无法找到condarc文件
一般情况下,condarc文件出现在/home/user目录下,但有时会出现找不到情况,解决办法如下:创建condarc文件命令condaconfig--addchannelsr即在/home/user目录下出现condarc文件...
2019-03-21 11:05:17 36788 6
原创 训练kaldi chian模型,Failed to allocate a memory和Failed to write matrix to stream错误解决方案
训练kaldi chian模型,出现如下错误ERROR (nnet3-chain-train[5.5]:AllocateNewRegion():cu-allocator.cc:498) Failed to allocate a memory region of 5627707392 bytes. Possibly this is due to sharing the GPU. Try swi...
2018-12-10 10:46:34 1884
原创 aishell运行报错:Please source tools/env.sh in your path.sh to enable it
aishell运行报错,提示需安装kaldi-lmlocal/aishell_train_lms.sh: train_lm.sh is not found. That might mean it's not installedlocal/aishell_train_lms.sh: or it is not added to PATHlocal/aishell_train_lms.sh: U...
2018-10-11 14:18:39 2612
原创 解决问题:ImportError: The 'enchant' C library was not found. Please install it via your OS package manag
操作系统:centos7.0问题描述:ImportError: The 'enchant' C library was not found. Please install it via your OS package manager, or use a pre-built binary wheel from PyPI.解决方案:先执行yum install python-ench...
2018-09-10 17:03:17 3949 1
原创 python代码打包install步骤
1、写setup.py脚本,几行代码即可from distutils.core import setup setup(name='mylib', version='1.0', py_modules=['mylib'], ) 2、打包发布python setup.py sdist,或者python setup.py bdist3、...
2018-08-29 15:13:54 824
原创 python3 调用http接口例子
import urllibresponse = urllib.request.urlopen('http://www.baidu.com')print(response.read())
2018-06-06 18:23:27 14855 1
原创 python判断字符串是否包含英文字符
def containenglish(str0): import re return bool(re.search('[a-z]', str0))
2018-06-06 18:21:21 31969 1
原创 ubuntu离线安装python-dev
首先下面网址,下载python-dev_2.7.15~rc1-1_amd64.debhttps://ubuntu.pkgs.org/18.04/ubuntu-main-amd64/python-dev_2.7.15~rc1-1_amd64.deb.html然后,pkgs -i python-dev_2.7.15~rc1-1_amd64.deb,即可安装成功...
2018-05-11 09:45:32 10602 1
原创 python跨平台读写文件(Windows linux)
由于windows、linux换行符的不同,导致在不同平台下生成的文件,经常会出现读写异常解决方法:f = open('words.txt', 'rU')即Python's universal newline support
2017-11-16 15:29:30 2246
原创 linux链接动态库
编辑文件/etc/ld.so.conf,并追加动态库目录,ldconfig更新vi /etc/ld.so.confldconfig外部安装的库,大部分安装在usr/local/lib里面
2017-06-13 16:55:31 316
原创 GIF生成截图工具LICEcap,效果相当不错,而且github开源(1.3k赞)
下载网址:http://www.cockos.com/licecap/开源代码:https://github.com/justinfrankel/licecap
2017-03-06 15:07:04 1230
原创 【效率优化】armabi与armabi-v7编译代码效率对比
armabi与armabi-v7编译代码,效率优化对比armabi:1、模块1:300ms~400ms2、模块2:3.5msarmabi-v7:1、模块1:30ms~40ms,提升10x左右;该模块较多浮点计算单元2、模块2:1.45ms,提升2.5x左右;该模块存在部分浮点单元android调用不同.so方式参考http://blog.
2017-02-14 15:43:31 700
原创 1、linux菜鸟篇 - 修改slickedit用户权限
[root@localhost slickedit]# cd ..[root@localhost opt]# lldrwxr-xr-x. 2 root root 4096 6月 22 2012 rhdrwxr-xr-x. 18 root root 4096 8月 18 11:26 slickedit[root@localhost opt]# chown -R www
2015-08-18 15:46:05 360
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人