yajiedesign / mxnet

efficient, flexible, distributed deep learning framework
Apache License 2.0
177 stars 45 forks source link

can't import mxnet in other folder #13

Open chechestars opened 7 years ago

chechestars commented 7 years ago

I’ve installed anaconda3 andpy3,so I create an environment for py2 named”mxnet”.And I followed the steps ,but I find I can only import mxnet successfully when I activate “mxnet” environment and go to the folder “D:\mxnet\python”.I can not import mxnet in other folder.It really confused me when I use jupyter but I can’t import mxnet.I’m not sure is there any solution for that?

yajiedesign commented 7 years ago

you need install first. run python setup.py install in mxnet\python.

chechestars commented 7 years ago

Yes,I've followed the steps in https://stankirdey.com/2017/07/04/upgrading-mxnet-from-0-9-to-0-10-on-windows-10/#comment-133.But I've encontered such question.

yajiedesign commented 7 years ago

Any error messages when you import?

chechestars commented 7 years ago

(mxnet) D:\mxnet\python>python Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:17:26) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://anaconda.org

import mxnet exit()

(mxnet) D:\mxnet\python>cd ..

(mxnet) D:\mxnet>python Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:17:26) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://anaconda.org

import mxnet Traceback (most recent call last): File "", line 1, in ImportError: No module named mxnet

yajiedesign commented 7 years ago

queerish. you can try use other env name.like py2.

yajiedesign commented 7 years ago

or try not use env .

chechestars commented 7 years ago

ok,well,when i change the env name,it still have the same problem.