How can I install a python .egg file

后端 未结 1 837
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-13 08:12

I am trying to install twisted on python 2.6 and it seems that the Zop interface is missing. Also it seems that it is a .egg file. I downloaded this .egg

相关标签:
1条回答
  • 2021-01-13 08:45

    Install virtualenv, which includes pip. Then you can simply run:

    pip install twisted
    

    pip will handle installing the zope.interface.

    Instructions for installing virtualenv and pip on OS X

    This is how I installed virtualenv and pip on OS X:

    curl -O http://peak.telecommunity.com/dist/ez_setup.py
    sudo python ez_setup.py
    sudo easy_install pip
    sudo pip install virtualenv
    

    I also like to use virtualenvwrapper with virtualenv, so I installed it using:

    sudo pip install virtualenvwrapper
    

    Instructions for installing Twisted in a virtualenv

    Now to create a new virtual environment and install Twisted, I simply issue:

    mkvirtualenv twisted-env
    pip install twisted
    
    0 讨论(0)
提交回复
热议问题