在Choregraphe上安装模块 [英] Installing a module on Choregraphe

查看:200
本文介绍了在Choregraphe上安装模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装在Choregraphe中使用的python模块.对于Windows,这似乎不是问题.我要做的就是确保在操作系统上以Python安装了该模块.

I am trying to install a python module to use in Choregraphe. For windows this does not appear to be an issue. All I have to do is make sure that the module is installed in Python on the operating system.

对于OSX,它似乎无法识别该模块.我也尝试过将其作为文件夹导入到项目中,但是仍然看不到它.

For OSX, it does not appear to recognise the module. I have also tried importing it as a folder to a project, but it still can't see it.

推荐答案

您是否尝试使用python系统路径:他查找库时的位置.

Do you try playing with the python system path: the location when he looks for library.

喜欢(在您的编排框中):

Like that (in your choregraphe box):

import sys
sys.path.append("path containing your_module folder")
import your_module

这篇关于在Choregraphe上安装模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆