使用pyclips并将片段导入为python模块 [英] using pyclips and import clips as a python module
问题描述
正在使用pyclips生成事实和我系统的规则..我已经下载了安装pyclips的所有要求,其中包括一个clips目录,该目录包含在python代码内部使用剪辑所必需的python文件..
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 the python files necessary for using clips inside the python code ..
但是当我写"import clips"或"import pyclips.clips"时,出现错误"没有名为clips的模块出现!
but when i write " import clips " or " import pyclips.clips" the error " " no module named clips " appear!!
因此,请问有人可以帮助我使导入正确吗?
so please clould any one help me to make the import correct?
我只想说我将pyclips文件夹放入c:/
just i wanna say that i put the folder pyclips insode the libraries folder in the python folder in c:/
推荐答案
PYTHONPATH="/Library/Python/2.7/site-packages/clips/"
export PYTHONPATH
这篇关于使用pyclips并将片段导入为python模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!