如何安装蟒蛇蛋

时间:2015-06-05 15:42:14

标签: python email postfix-mta egg

我正在尝试为我的postfix安装设置ftw.mail。 由于我是Linux和Python的新手,我不知道它是否正确,是朝着正确的方向发展还是垃圾。

从官方文档中我发现了这个:

  
      
  • 将ftw.mail添加到您的buildout配置中:
    [instance]
    egg + =
      ftw.mail
  •   
  • 安装通用设置导入配置文件。
  •   

(来源:https://github.com/4teamwork/ftw.mail/blob/master/README.rst

我的第一个问题是:“/ etc / postfix /”会是所谓的“buildout配置”吗?

其次,我在如何构建我试过的“鸡蛋”方面遇到了困难:

    <div style="text-align: center;">
       <img src="myImg.png" style="max-width: 100%; height: auto;" alt="FYI, image alt text is required" />
    </div>

然后:

$ wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python for ez_setup

并完成:

$ sudo apt-get install python-setuptools

在控制台上我被告知,鸡蛋在那里:

  

/usr/local/lib/python2.7/dist-packages/ftw.mail-2.3.1-py2.7.egg

我找到了它并且我已经读过我必须启动它:

$ sudo easy_install ftw.mail

基本上什么也没做。 现在的问题是:我如何安装鸡蛋?

总结我的问题:

  1. “etc / postfix /”是我正在寻找的buildout配置目录吗?
  2. 如何安装Python egg?
  3. 我该怎么办:[实例]鸡蛋+ = ftw.mail?
  4. 什么是“通用设置导入配置文件”?

1 个答案:

答案 0 :(得分:3)

我想我是这样做的:

$ sudo easy_install /usr/local/lib/python2.7/dist-packages/cssutils-1.0-py2.7.egg
相关问题