python - 无法将库导入项目

标签 python django google-app-engine orange

我尝试在 Python 中创建项目,该项目由 GAE、Django 和 Orange library 组成.当我在没有 Orange 的情况下创建这个项目时,运行它没有问题。但是当我将该库附加到项目时,我收到消息

ImportError: No module named orange

我尝试将源代码添加到我的项目目录,但它也不起作用。我尝试在 Eclipse 和 PyCharm 中创建项目 - 仍然是同样的错误。但是,当我写指令时

从橙色导入...

intellisense 正常工作。如果有人可以帮助我将这个库导入到我的项目中,我将不胜感激:)

最佳答案

GAE 不支持带有 C 扩展的 python 模块。用他们自己的话说:

Application code written for the Python environment must be written exclusively in Python. Extensions written in the C language are not supported.


$ cloc Orange-2.0.0b/
    1625 text files.
    1508 unique files.                                          
     305 files ignored.

http://cloc.sourceforge.net v 1.53  T=5.0 s (251.4 files/s, 62502.0 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Python                         714          25736          24393          90413
C++         <-- !!!            125          16505           5423          61998
HTML                           235           8643             95          29406
C                               22           2436           5794          14876
C/C++ Header                   134           5982           4497          13878
CSS                              6            318             81           1373
make                            10             81             23            318
Javascript                       1             14             52             91
SQL                              5              5              5             50
DOS Batch                        5              3              1             20
-------------------------------------------------------------------------------
SUM:                          1257          59723          40364         212423
-------------------------------------------------------------------------------

关于python - 无法将库导入项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6902359/

相关文章:

python - 多类分类的每类 F1 分数

python - Django - NoReverseMatch 位于/accounts/password_reset/

google-app-engine - 出于计费目的,ndb 缓存读取操作是否仍算作数据存储读取操作?

mysql - Django unique_together 不工作

django - 使用 xlswriter || 自动调整列宽 Django

android - 使用 App Engine 更新应用程序中的数据库

java - GAE Python Datastore - 嵌套类表查询

python - 链表数据结构理解

Python/Pandas –– ParserError : Error tokenizing data. C 错误 : Expected x fields in line i, 看到 y

python - 皮莫/IPOPT : retrieving computed variables