using pyclips and import clips as a python module

穿精又带淫゛_ 提交于 2019-12-01 15:10:56

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

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.

Bemis
PYTHONPATH="/Library/Python/2.7/site-packages/clips/"
export PYTHONPATH
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!