install python module using a zip file

后端 未结 6 1577
悲&欢浪女
悲&欢浪女 2020-12-16 14:18

I have downloaded a zip file from here but I don\'t know how to install it and then use it in my python 2.7 they said it supports both python 2 and 3

using command:

6条回答
  •  借酒劲吻你
    2020-12-16 14:50

    The right way to install a zipfile (at least if it's properly designed, but I just tested this one, and it is) is with pip:

    pip install hazm-master.zip
    

    Or, if you prefer, you can unzip it and use pip from within the directory:

    unzip hazm-master.zip
    cd hazm-master
    pip install .
    

    But neither of these is really necessary, because, as the project's readme says, you don't need to download it manually; just do:

    pip install hazm
    

提交回复
热议问题