+ 我要发布
我发布的 我的标签 发现
浏览器扩展
斑点象@Edge

debian下使用source命令报错:sudo: source: command not found

在debian里部署了python web程序,进入虚拟环境时报错 ``` sudo source venv/bin/activate ``` 报错如下 ``` sudo: source: command not found ``` source是一个bash build-in命令(不是程序 – 如ls或grep)。一种方法是以root用户身份登录,然后执行source命令。 解决方案: ``` sudo -s source venv/bin/activate ```
我的笔记