install python module using a zip file

后端 未结 6 1584
悲&欢浪女
悲&欢浪女 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条回答
  •  猫巷女王i
    2020-12-16 14:53

    In order to install hazm, you need to install all of its prerequisites.

    If you install it with pip install hazm or pip install hazm-master.zip, pip will try to fetch and install all of them for you. If you unzip it and run setup.py manually, you have to take care of figuring out and installing all the prerequisites on your own (and possibly telling hazm how to find them); that isn't going to solve anything.

    Your problem appears to be with libwapiti, which requires a C compiler, and presumably also the Wapiti C library. I'm not actually sure that Wapiti and libwapiti actually work natively on Windows at all. Maybe they do, but if not, all you can do is port them yourself, file a feature request on their issue trackers, or use Cygwin instead of native Windows.

    At any rate, if they support Windows, what you need to do should be:

    • Download, make, and install Wapiti (see the link above, and read the instructions on their website or inside the package).
    • pip install hazm again.

提交回复
热议问题