![](/img/trans.png)
[英]How can I install a .egg Python package on Windows (attempt using easy_install not working)
[英]How I can install a local egg with easy_install using ansible?
我有幾個本地雞蛋包(公司特定的物品),需要將它們安裝在ansible物品中。
我可以使用shell命令進行惡意安裝,但我想知道是否還有一種更友好/更友好的方法?
不適用於雞蛋AFAIK。 Ansible確實具有easy_install
模塊,但是它沒有在本地設置和設置雞蛋的選項。
您可以嘗試使用pip
模塊,但是您可能已經看到, pip
不支持本地egg安裝。 因此,如果要使用pip
Ansible模塊,則將為作為雞蛋的那些軟件包創建源分發。
您可以在此處查看Ansible pip
模塊的文檔:
http://docs.ansible.com/pip_module.html
另外, pip
文檔在這里:
http://www.pip-installer.org/en/latest/
當然,您可以為Ansible破解easy_install
模塊,但這可能會花費比僅使用Ansible shell
模塊更長的時間。
希望能幫助到你。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.