Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在ModelArts中想要使用theano库怎么办? #1698

Open
ylan01 opened this issue Dec 7, 2019 · 3 comments
Open

在ModelArts中想要使用theano库怎么办? #1698

ylan01 opened this issue Dec 7, 2019 · 3 comments

Comments

@ylan01
Copy link

ylan01 commented Dec 7, 2019

import theano
import theano.tensor as T
import lasagne
import pickle
import gzip
import binary_net
我需要引用上面这几个库,在ModelArts应该怎么添加这些库?不是在notebook中。
新手一枚,敬请赐教

@ylan01
Copy link
Author

ylan01 commented Dec 7, 2019

我试了一下用依赖包的方式,在pip-requirements.txt中添加theano==0.9.0,还是不行
image

@chaoxu1203
Copy link
Collaborator

参考这个链接,可以试试Theano==0.9.0,大小写问题。

@ylan01
Copy link
Author

ylan01 commented Jan 9, 2020

参考这个链接,可以试试Theano==0.9.0,大小写问题。
谢谢你的指点!
我修改之后重新试了一下,还是不行,下面是输出的日志
Collecting Theano==0.9.0 (from -r /home/work/user-job-dir/code/pip-requirements.txt (line 1)) Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/28/03/6af9ff242da966f89de6ab81164db0d1a36fd89379b7370f07043de62f10/Theano-0.9.0.tar.gz (3.1MB) Collecting lasagne==0.2.dev1 (from -r /home/work/user-job-dir/code/pip-requirements.txt (line 2)) /home/work/user-job-dir [Modelarts Service Log][modelarts_logger] modelarts-pipe found Traceback (most recent call last): File "code/fault_train.py", line 12, in <module> import theano ModuleNotFoundError: No module named 'theano'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants