safa

分享观点与知识

0
推荐
4657
阅读

Centos 7 安装 CUDA11.1

查看显卡是否存在$ lspci | grep -i vga禁用Nouveau驱动$ sudo vi /etc/modprobe.d/blacklist.conf blacklist nouveau :wq使用 dracut重新建立 initramfs p_w_picpath file #备份 the initramfs file $ sudo mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak #重新建立 the initramfs fil...

发表了文章 • 2020-09-27 10:46 • 0 条评论

0
推荐
1398
阅读

text2code安装

1. 下载安装git clone https://github.com/deepklarity/jupyter-text2code.git cd jupyter-text2code pip install .2. 打开jupyter notebookjupyter notebookIf installation happened successfully, then for the first time, Universal Sentence Encoder model will be downloaded from tensorflow_hub.3. 解决下...

发表了文章 • 2020-09-21 16:24 • 0 条评论

0
推荐
1831
阅读

centos matplotlib 中文 显示方框

1. 下载 SimHei.ttfsudo wget https://github.com/StellarCN/scp_zh/raw/master/fonts/SimHei.ttf2. 安装中文字体SimHeisudo yum install fontconfig # 包含fc-list列举可用字体 fc-cache生成字体信息缓存 sudo yum install mkfontscale # 生成字体索引 sudo mkdir /usr/share/fonts/zh_CN # 建立放中文字...

发表了文章 • 2020-09-16 18:38 • 0 条评论

0
推荐
792
阅读

python: import 文件

image-tsne.ipynb 引用 lookalike下的模块 extract_feats import sys sys.path.append("/work/lookalike/") # 指定绝对路径,告诉extract_feats.py中的from extract_cnn_vgg16_keras 引入知道extract_cnn_vgg16_keras在哪里 sys.path.append("../") # 指定相对路径,告诉from lookalike引用,知道lookalike在哪里 f...

发表了文章 • 2020-09-11 18:15 • 0 条评论

0
推荐
1290
阅读

proxy pool

1. git clone proxy_pool$ git clone git@github.com:jhao104/proxy_pool.git2. 解决github clone报错Conection refusedhttps://ask.hellobi.com/blog/safa/367753. 安装python3 的包$ env364 $ pip install -r requirements.txt4. 安装redis数据库$ sudo yum install epel-release # 添加epel库 $ sudo yum upda...

发表了文章 • 2020-09-08 16:34 • 0 条评论

0
推荐
1132
阅读

git clone 命令遇到问题解决 fatal: unable to access **: Failed connect to localhost:1080; Connection refused

1. 先运行git config --list命令,查看配置$ git config --list http.proxy=localhost:1080 2. 用--unset命令来解决$ git config --global --unset http.proxy $ git config --global --unset https.proxy

发表了文章 • 2020-09-07 17:15 • 0 条评论

0
推荐
5714
阅读

安装 pyhive 出错 ModuleNotFoundError: No module named 'sasl'

yum install cyrus-sasl-lib.x86_64 yum install cyrus-sasl-devel.x86_64 yum install libgsasl-devel.x86_64 yum install saslwrapper-devel.x86_64 sudo pip install sasl sudo pip install thrift_sasl

发表了文章 • 2020-09-07 09:14 • 0 条评论

0
推荐
958
阅读

SecureCRT 自动断开

每台要连接的机器上,修改profile里的timeout=0vi /etc/profile TMOUT=0 # 改成0,即没有timeout :wq . /etc/profile # 运行生效 不用下面设置

发表了文章 • 2020-09-04 17:35 • 0 条评论

0
推荐
1984
阅读

CentOS + Windows (Xming + SecureCRT) 不能打开图形界面 cannot open display:

一、CentOS服务器端:1. /etc/ssh/sshd_conf文件,开启X11转发sudo vi /etc/ssh/sshd_conf X11Forwarding yes   #默认已开启2. 重启sshd服务sudo service sshd restart3. 安装xorg-x11-xauth程序,sshd需要这个程序执行X11转发sudo yum -y install xorg-x11-xauth4. (可选)指定图形输出到windows所在的IP,在 .bash...

发表了文章 • 2020-09-02 11:44 • 0 条评论

0
推荐
1143
阅读

安装 Milvus

https://milvus.io/docs/v0.10.2/milvus_docker-gpu.md确认后台是否运行了Docker daemonsudo docker info sudo systemctl start docker # 启动docker sudo docker ps -a # 查看所有的容器 获取支持GPU的milvus 镜像sudo docker pull milvusdb/milvus:0.10.2-gpu-d081520-8a2393安装milvusmkdir -p /home/$USER/milvus/co...

发表了文章 • 2020-08-31 11:05 • 0 条评论

0
推荐
2147
阅读

CentOS 7.X 安装 nvidia-docker

安装 https://github.com/NVIDIA/nvidia-dockerCentOS 7.X/8.X (docker-ce), RHEL 7.X/8.X (docker-ce), Amazon Linux 1/2distribution=$(. /etc/os-release;echo $ID$VERSION_ID) curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.repo | sudo tee /etc/yum.repos.d/nvidia-docker...

发表了文章 • 2020-08-31 10:26 • 0 条评论

0
推荐
4046
阅读

ModuleNotFoundError: No module named 'fastai.callbacks' 报错

~/.pip/pip.conf[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple降级到 1.0版本pip install fastai==1.0.52

发表了文章 • 2020-08-26 10:50 • 0 条评论

0
推荐
845
阅读

镜像设置

pip install 镜像位置设置vi ~/.pip/ pip.conf [global] index-url = https://pypi.mirrors.ustc.edu.cn/simple/ wq!清华: https://pypi.tuna.tsinghua.edu.cn/simple 阿里云: http://mirrors.aliyun.com/pypi/simple/ 中国科技大学: https://pypi.mirrors.ustc.edu.cn/simple/ 华中理工大学: ...

发表了文章 • 2020-08-25 09:46 • 0 条评论

0
推荐
942
阅读

裸机安装

创建新用户,修改权限adduser jordan # 创建新用户 passwd jordan # 初始化密码个人用户的权限只可以在本home下有完整权限,其他目录需要别人授权。经常需要root用户的权限,可以通过修改sudoers文件来赋予权限。whereis sudoers # 查找sudoers文件路径 ls -l...

发表了文章 • 2020-08-21 17:59 • 0 条评论

0
推荐
2685
阅读

matplotlib 中文字体 设置

方法一、修改matplotlibrc配置字体1. 定位matplotlib的字体库路径locate -b '\mpl-data'或者在 python环境下import matplotlib matplotlib.matplotlib_fname() /cnn/.pyenv/versions/3.6.5/envs/env3web/lib/python3.6/site-packages/matplotlib/mpl-data 2. 将微软雅黑字体文件msyh.ttf,拷贝到该目录的font...

发表了文章 • 2020-07-10 14:58 • 0 条评论