我有一个Python应用程序,我想提供给Android。该应用程序使用Theano和Numpy。在Android设备上运行应用程序时,我得到以下亚行日志:
Traceback (most recent call last):
I/python (24492): File "main.py", line 19, in <module>
I/python (24492): from theano import function
I/python (24492): File "/data/data/org.example.AppName/files/lib/python2.7/site-packages/theano/__init__.py", line 42, in <module>
I/python (24492): from theano.configdefaults import config
I/python (24492): File "/data/data/org.example.AppName/files/lib/python2.7/site-packages/theano/configdefaults.py", line 1486, in <module>
I/python (24492): "platform": platform.platform(),
I/python (24492): File "/home/user-name/.local/share/python-for-android/build/other_builds/python2/armeabi/python2/python-install/lib/python2.7/platform.py", line 1575, in platform
I/python (24492): File "/home/user-name/.local/share/python-for-android/build/other_builds/python2/armeabi/python2/python-install/lib/python2.7/platform.py", line 163, in libc_ver
I/python (24492): IOError: [Errno 21] Is a directory: '/data/data/org.example.AppName/files'
I/python (24492): Python for android ended.我不知道如何进行,也不知道是否可以在Android中导入Theano。Kivy应用程序可以在Linux和Windows上工作。
提前谢谢。
发布于 2017-02-20 12:11:45
Theano不支持android。您可以使用TensorFlow或创建一个webservice,并从您的应用程序中发出http请求,请求该服务为您完成这项工作。
https://stackoverflow.com/questions/42331986
复制相似问题