How to run Python egg files directly without installing them?

前端 未结 4 2075

Is it possible to run Python egg files directly as you can run jar files with Java?

For example, with Java you might dos something like:



        
4条回答
  •  再見小時候
    2021-01-31 03:57

    For example, if you want to import the suds module which is available as .egg file:

    egg_path='/home/shahid/suds_2.4.egg'
    
    sys.path.append(egg_path)
    
    import suds
    #... rest of code
    

提交回复
热议问题