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

can't import mxnet in other folder #13

Open
chechestars opened this issue Jul 22, 2017 · 7 comments
Open

can't import mxnet in other folder #13

chechestars opened this issue Jul 22, 2017 · 7 comments

Comments

@chechestars
Copy link

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
Copy link
Owner

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

@chechestars
Copy link
Author

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
Copy link
Owner

Any error messages when you import?

@chechestars
Copy link
Author

(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
Copy link
Owner

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

@yajiedesign
Copy link
Owner

or try not use env .

@chechestars
Copy link
Author

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

yajiedesign pushed a commit that referenced this issue Sep 19, 2019
* Added tutorial for FIT API

* Added tests for Fit API tutorial

* Updated index.md for the new tutorial to show up

* Addressed PR feedback

* Addressed PR feedback

* Removed spurious comment for Py2 and Py3 compatibility

* Address PR feedback

* Addressed PR feedback

* Fixed typo

* Added example to showcase custom event handler

* Fixed imports as estimator moved to contrib package

* Added a side note to inform about estimator reference being updated by the handlers

* Corrected typo

* update tutorial

* address comments

* new line

* fix import

* fix cached graph

* fix import

* address comments

* fix doc gen

* add softmax

* add to website index

* fix doc string

* Fix doc gen (#12)

* fix warining

* fix test

* fix

* fix

* fix print

* fix test (#13)

* fix warning (#14)

* fix href (#15)
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