using pyclips and import clips as a python module

前端 未结 3 1920
执念已碎
执念已碎 2021-01-16 22:03

am using pyclips to generate the facts a nd rules of my system .. i have download every requirements for installing pyclips which include a clips directory that contatins th

相关标签:
3条回答
  • 2021-01-16 22:26

    You can't double click the setup.py file.
    First you change current dir to place which the setup.py file.
    Second use command setup.py install.

    You do about all, that's ok.

    e.g: 
    
    C:\Windows\System32>F:
    
    F:\>cd F:\Downloads\pyclips-1.0.7.348\pyclips
    
    F:\Downloads\pyclips-1.0.7.348\pyclips>setup.py install
    
    0 讨论(0)
  • 2021-01-16 22:26
    PYTHONPATH="/Library/Python/2.7/site-packages/clips/"
    export PYTHONPATH
    
    0 讨论(0)
  • 2021-01-16 22:35

    After the CLIPSSrc package is built, follow Mark's answer.

    If on running 'import clips' in a subsequent python prompt still throws the same error that means either the clips module failed to build or the clips module is not in the python path.

    You can put the clips module in in the python path by:

    import sys
    sys.path.append('C:\PATH\TO\clips\module\clips') # Whatever path the clips module is
    

    Now, 'import clips' should work.

    0 讨论(0)
提交回复
热议问题