ubuntu使用工具
yaologos
fighting!
展开
-
crontab设置定时任务运行指定版本python程序
crontab设置定时任务运行指定版本python程序 1、通常情况 conda activate env_name python -u main.py 通常先进入conda环境,然后运行python程序,此时使用的是该环境下的python 2、定时任务 先写一个shell脚本task.sh,shell脚本中使用source激活环境,由于activate没有设置环境变量,因此使用绝对路径,可以修改路径,然后输入环境名称env_name, 就能激活特定环境,然后执行python脚本即可 source ~/m原创 2021-01-21 00:27:45 · 710 阅读 · 0 评论 -
jupyter notebook的自用配置
jupyter notebook的自用配置安装运行配置设置jupyter的运行终端选择喜欢的插件jupyter主题设置最重要的详细内容请参考 安装 安装anaconda 运行 设置环境变量后,命令行运行 jupyter notebook 配置 安装jupyter的插件库 conda install -c conda-forge jupyter_contrib_nbextensions 设置jupy...原创 2019-03-14 17:18:14 · 185 阅读 · 0 评论