摘要: select min_val, max_val from pg_settings where name='max_connections';SELECT * FROM pg_stat_activity;SELECT COUNT(*) from pg_stat_activity;show max_co 阅读全文
posted @ 2022-09-13 11:41 一只小羊 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 原因:在Python3中使用 spawn 或 forkseverver 启动方法才支持在进程之间共享CUDA张量。而我是用的multiprocessing 是使用 fork 创建子进程,不被 CUDA 运行时所支持 在程序最开始的地方加上: torch.multiprocessing.set_sta 阅读全文
posted @ 2022-07-13 09:19 一只小羊 阅读(2610) 评论(0) 推荐(0) 编辑
摘要: 安装conda:https://zhuanlan.zhihu.com/p/459607806 安装rdkit:conda install -c conda-forge rdkit 安装chemprop:pip install -i https://pypi.tuna.tsinghua.edu.cn/ 阅读全文
posted @ 2022-06-13 13:42 一只小羊 阅读(188) 评论(0) 推荐(0) 编辑
摘要: mv /etc/apt/sources.list /etc/apt/sources.list.bakecho "deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free" >> /etc/apt/sources.listec 阅读全文
posted @ 2022-06-12 22:53 一只小羊 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 报错:UnicodeEncodeError: ‘ascii' codec can't encode characters in position 24-25: ordinal not in range(128) 1、使用locale查看服务器的编码 LANG=LANGUAGE=LC_CTYPE="P 阅读全文
posted @ 2022-06-12 22:41 一只小羊 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1、下载 Anaconda 进入 Ubuntu,自己新建下载路径,输入以下命令开始下载 wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2021.11-Linux-x86_64.sh 2、安装 Anaconda 阅读全文
posted @ 2022-06-11 13:50 一只小羊 阅读(930) 评论(0) 推荐(0) 编辑
摘要: 1、linux里查看gpu的显卡使用状态 nvidia-smi 2、使用指定的gpu运行 linux指令:CUDA_VISIBLE_DEVICES=7 xxx python文件:os.environ["CUDA_VISIBLE_DEVICES"] = "7" 阅读全文
posted @ 2022-06-10 11:00 一只小羊 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 使用pip freeze > requirements时,不会生成Django==2.2.5,而是Django @ file:///tmp/build/80754af9/django_1613762073373/work; 使用pip list --format=freeze > requireme 阅读全文
posted @ 2022-06-02 10:26 一只小羊 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 设置开机自启: rc-local.server [Unit] Description=/etc/rc.local Compatibility ConditionPathExists=/etc/rc.local After=network.target After=postgresql.service 阅读全文
posted @ 2021-12-10 18:49 一只小羊 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 系统:ubuntu18.04 / Centos 7自带Python3.61、安装pip3 apt-get install -y python3-pip pip3 install --upgrade pip 安装psycopg2报错 解决:sudo apt-get install libpq-dev 阅读全文
posted @ 2021-12-10 18:20 一只小羊 阅读(875) 评论(0) 推荐(0) 编辑