How to add python modules and packages?

715
2
11-04-2016 07:15 PM
RobertYu
New Contributor III

What is the recommended way to add python modules and packages?

For example, there is a package called "numberjack".  Typically I would do "pip install numberjack"

with regular python.  Not sure how to do that with cityengine.

Thanks,

Robert

0 Kudos
2 Replies
DanPatterson_Retired
MVP Esteemed Contributor

is the ce version of python conda managed?  The only concern would be whether the module works with your current python and whether it wants to change dependencies to other modules.  have a good look a that, and if it is pretty separate and doesn't modify and current files you should be fine.

check the homepage What is Numberjack? | Numberjack 

and github  GitHub - eomahony/Numberjack: Python Combinatorial Optimisation Platform  since there seem to be othe things that you need to do as well

0 Kudos
ThomasFuchs
Esri Regular Contributor

CityEngine comes with a version of Python that has been ported to Java, therefore it cannot easily be extended with external packages. Some Python modules, like numberjack, have required components in C. These won't work.
There is no official support for adding extensions to CityEngine Python.

0 Kudos