Hello World

这个是标题,但是为什么要有标题

这个是子标题,但是为什么要有子标题

记录一些常用的指令

Linux按照指令来关闭某个进程

nohup python -u "main.py"    > log.out 2>&1 &
ps -ef|grep "python -u main.py"| awk '{print $2}'|xargs kill -9

 

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda install --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ pytorch torchvision cudatoolkit

conda config --set ssl_verify false pip install -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple ipykernel
python -m ipykernel install --user --name geo_torch --display-name "geo_torch"
 


plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams["axes.unicode_minus"]=False
 

 

报错:

DataDirError: Valid PROJ data directory not found. Either set the path using the environmental variable PROJ_LIB or with `pyproj.datadir.set_data_dir`.

 

 

import os
os.environ['PROJ_LIB'] = "D:\\anaconda\\envs\\geo\\Library\\share\\proj"

import pyproj
pyproj.datadir.get_data_dir()

 

posted on 2022-01-19 22:24  swuxyj  阅读(149)  评论(0编辑  收藏  举报

导航

Hello World