当我试图安装python-gtk2-dev时,我会收到以下消息:
~$ sudo apt-get install python-gtk2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libpaps0 linux-headers-4.4.0-51 linux-headers-4.4
我有一个python脚本,它在服务器上部署ear文件,我如何使用厨师来引导linux节点执行这个脚本?
尝试了下面的菜谱,但是它无法识别我的python脚本,它存在于我的食谱的"mycookbook\files\default\deploy.py“文件夹中。
execute 'executeFile' do
command "python #{'deploy.py'}"
end
尝试给出完整的文件路径,但它仍未识别该文件。如何使用厨师的执行资源在烹饪书中执行python脚本?
我想用cython编译python项目。我创建了这个setup.py文件:
from setuptools import setup, find_packages
from Cython.Build import cythonize
recursive_tree = [file for file in glob.iglob("sample/**/*.py", recursive=True)]
setup(
name = 'sample',
version