pythonimportgoogle-colaboratorypdfminerpyml

How can i import PyML in colab?


i am trying to import PyML in colab and it tell me " No module named 'PyML' " i need to import it to use datafunc and. I check this question Python ImportError: cannot import name datafunc [PyML] , but it depend on import PyML. can any one help me to solve this or tell me onther way to do what datafunc do?


Solution

  • one way is:

    1. clone the github: !git clone https://github.com/gf712/PyML.git

    verify that you have respective folder now.

    import os
    os.listdir()
    

    output will be like :

    ['.config', 'PyML', 'sample_data']
    

    go to 'PyML'

    cd PyML/
    

    and then run the setup:

    !python setup.py install
    

    after all successful steps, import PyML will work.