![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
linux
cxxx17
为什么可乐一定要加冰
展开
-
安装zsh&oh-my-zsh(没有root权限)
安装zsh&oh-my-zsh(没有root权限)想要安装智能丝滑的oh-my-zsh,首先check是否安装了zsh。zsh --version若zsh: command not found,则首先需要安装zsh,否则直接跳至step 2。step 1 安装zsh# 下载最新的zsh安装包wget -O zsh.tar.xz https://sourceforge.net/projects/zsh/files/latest/download --no-check-certificat原创 2022-03-16 18:00:03 · 3383 阅读 · 0 评论 -
Docker中查看物理机的IP
ifconfig红框中即是物理机IP原创 2021-09-27 10:12:51 · 649 阅读 · 0 评论 -
linux遍历文件夹下的绝对路径,并重定向到某个文件
for i in $(ls ./); do echo $(pwd)/$i >> /the/path/of/output/file;done原创 2021-08-29 23:10:49 · 414 阅读 · 0 评论 -
docker 常用命令
检查docker是否安装成功:docker run hello-world查看正在运行的dockerdocker ps关闭docker# docker stop [CONTAINER ID]docker stop d6734fd5809c原创 2021-06-15 22:47:35 · 113 阅读 · 0 评论 -
【debug】docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
docker run hello-world时,报错:docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?sudo service docker restart重启Docker引擎之后解决。原创 2021-06-09 18:30:26 · 110 阅读 · 0 评论 -
自定义nltk_data位置
使用nltk时,指定nltk_data位置:import nltknltk.data.path.insert(0, /the/dir/you/want+'/nltk_data')原创 2021-06-02 14:44:49 · 1116 阅读 · 0 评论 -
【debug】 UnicodeEncodeError: ‘ascii‘ codec can‘t encode characters in position 0-15解决
export LC_ALL="en_US.utf8"解决。原创 2021-05-12 19:46:24 · 350 阅读 · 0 评论 -
linux在文件名前加一行
ls > filelist得到:在每列前面加入一行file:sed -i 's/^/file /g' filelist原创 2021-05-06 19:44:27 · 642 阅读 · 0 评论 -
【debug】LPCNet:.libs/lt-lpcnet_demo: error while loading shared libraries
应用自己的模型编译后的lpcnet_demo命令./lpcnet_demo -synthesis step-20-eval.lpc step-20-eval.pcm时报错:.libs/lt-lpcnet_demo: error while loading shared libraries: liblpcnet.so.0: cannot open shared object file: No such file or directory.删掉与lpcnet_demo同目录下的.libs文件夹即可。原创 2021-04-08 11:09:53 · 104 阅读 · 0 评论 -
【debug】Could not import the PyAudio C module ‘_portaudio‘. 解决
import pyaudio时报错,Could not import the PyAudio C module ‘_portaudio’.sudo apt-get install portaudio19-dev解决。--------------------分割线------------------------------------安装pyaudio时,报错:error: command ‘gcc’ failed with exit status 1sudo apt-get install原创 2021-04-06 19:56:56 · 704 阅读 · 1 评论 -
临时使用清华源镜像
pip install tensorflow-gpu==1.14 -i https://pypi.tuna.tsinghua.edu.cn/simple原创 2021-03-19 20:56:01 · 1905 阅读 · 0 评论 -
【debug】Can I use my own ld.so.cache?
use own ld.so.cache原创 2021-02-09 15:08:09 · 63 阅读 · 0 评论 -
python - 如何告诉根进程使用anaconda python安装而不是/usr/bin/python?
use conda python转载 2021-02-09 11:56:24 · 305 阅读 · 0 评论 -
【denug】make install指定目标目录的两种方法
makeinstall转载 2021-02-08 20:31:55 · 791 阅读 · 0 评论 -
【debug】-bash: ./*.sh: /bin/bash^M: bad interpreter: No such file or directory 解决
执行shell脚本时出现了^M:bad interpreter错误。./installers/install_warp-ctc.sh出现错误:bash: ./installers/install_warp-ctc.sh: /bin/bash^M: bad interpreter: No such file or directory。vim installers/install_warp-ctc.sh在vim中使用:set ff?得到文件的格式是dos,使用命令,解决。(应该是我的代码是在w原创 2021-02-07 20:37:03 · 406 阅读 · 0 评论 -
【debug】-bash: ./*.sh: Permission denied 解决
使用./viterbi_decode.sh运行shell脚本时报错: -bash: ./viterbi_decode.sh: Permission denied,使用命令查看viterbi_decode.sh的权限,如图:ls -l viterbi_decode.sh可以看出没有执行权限。chmod +x viterbi_decode.sh./viterbi_decode.sh即可。...原创 2021-02-07 20:28:07 · 676 阅读 · 0 评论 -
查看GPU任务所属用户
nvidia-smi #查看pidps aux | grep the_pid原创 2021-01-20 10:23:10 · 1301 阅读 · 0 评论 -
【debug】SyntaxError: Non-ASCII character ‘\xe2‘ in file
在linux下运行 prepare_data.py 出现 Bug:SyntaxError: Non-ASCII character ‘\xe2’ in file prepare_data.py我的代码是在 windows 系统下 git clone下来的,windows的默认编码是ASCII,而linux下默认编码是utf-8,将prepare_data.py头部加上# -*- coding: utf-8 -*-即可。...原创 2021-01-10 20:49:53 · 268 阅读 · 0 评论 -
OSError: sndfile library not found
在docker里碰到了OSError: sndfile library not foundapt-get install libsndfile1原创 2020-10-30 10:46:34 · 1609 阅读 · 0 评论 -
Linux判断两个文件是否是同一个文件
如何判断两个文件是不是同一个文件使用md5sum命令:md5sum file1md5sum file2如果file1 file2打印出来的码是一样的,那么二者是同一个文件,否则不是。原创 2020-12-28 14:15:26 · 2588 阅读 · 0 评论 -
不用sudo权限安装cuda10.1
没有sudo权限安装cuda10.1原创 2020-12-07 12:56:06 · 4295 阅读 · 4 评论