本地刷新excel执行脚本报错解决
本地刷新excel执行脚本报错解决
what: 本地刷新excel执行脚本报错解决
when: 10/21
who:JRT
where:anywhere
why:记录
问题一:
问题描述:执行python脚本/app.py 报: line 1: import: not found,即python利用pip安装依赖后导入失败
分析:脚本中找不到python,指定即可。
解决:
/origin-excelflush # which python
/usr/local/bin/python
#在脚本中首行加入 #!/usr/local/bin/python