Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 rsyslog 中使用 shell 执行操作到 CentOS 机器上的 python 脚本。如何确保它在指定的 virtualenv 中运行?
你有没有在研究某事时问过一个问题,然后知道你需要做什么,然后希望你没有问过这个问题?
您需要做的就是修改您的 python 路径并将路径添加到您要使用的 virtualenv 的 site-packages 目录。