mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Install mxnet into anaconda's python

Open jacklxc opened this issue 10 years ago • 20 comments

I'm trying to use minpy which requires mxnet in anaconda's jupyter notebook. minpy can be installed using anaconda's pip successfully.

However there is an issue on installing mxnet. I noticed using anaconda's "pip install mxnet" does not work (opencv not found, although opencv.pc clearly exists and the path is correctly set). So I wonder how can I install mxnet into anaconda's python, instead of system's default python by changing some settings? I figured out I can disable using opencv by changing config.mk file. I used a similar way to get both minpy and mxnet work on system's default python.

Thank you.

jacklxc avatar Oct 04 '16 10:10 jacklxc

You should use python setup install under python directory when you are in your anaconda's virtual env.

Follow the instruction here: http://mxnet.readthedocs.org/en/latest/how_to/build.html

zihaolucky avatar Oct 04 '16 13:10 zihaolucky

do not use 'sudo' when you type 'python setup install', and your anaconda path should be in environment variable PATH.

starimpact avatar Oct 05 '16 13:10 starimpact

Can you provide an easy conda installation for mxnet? It will be very usefull!

RogerBorras avatar Nov 29 '16 23:11 RogerBorras

@RogerBorras do you mean conda install mxnet?

zihaolucky avatar Nov 30 '16 02:11 zihaolucky

@zihaolucky Yes :)

RogerBorras avatar Nov 30 '16 06:11 RogerBorras

Okay, I understand. Since I'm not familiar with conda itself, and tensorflow does support conda install tensorflow, so let's do some research and see if that's possible.

Reference:

https://github.com/conda-forge/tensorflow-feedstock

zihaolucky avatar Nov 30 '16 07:11 zihaolucky

As far as I know, is not difficult to create a conda installer if you have installed the normal Python version. But I have problems to install it in conda distribution. It would be great for a lot of users if you can provide it. Is avaliable an mxnet conda installer for OSX-64 (but not for windows and linux):

https://anaconda.org/derickl/mxnet

Thanks for your amazing mxnet library!

RogerBorras avatar Nov 30 '16 08:11 RogerBorras

@RogerBorras Yes, the link in my previous comment might provide a promising source to provide this feature for MXNet easy installation :)

zihaolucky avatar Nov 30 '16 08:11 zihaolucky

@zihaolucky Great!

RogerBorras avatar Nov 30 '16 09:11 RogerBorras

@zihaolucky Any progress?? :)

RogerBorras avatar Dec 09 '16 19:12 RogerBorras

@RogerBorras sorry for no any progress on this direction and let you down.

I've check the material above but fail to get any useful information, besides I'm now working on a project to bring TensorBoard to MXNet so I'm afraid I have no enough energy to work on this for a while. But I would keep it and work again when I have time.

zihaolucky avatar Dec 12 '16 12:12 zihaolucky

@zihaolucky No problem, I use MXNet in R too and Tensorboard in MXNet will be a great feature!!

RogerBorras avatar Dec 12 '16 12:12 RogerBorras

Hi @RogerBorras @jacklxc

As I'm working on the TensorBoard project, https://github.com/dmlc/tensorboard/pull/2 I learned how to provide a .whl for easy installation just like TensorFlow does. In TensorFlow, they provide different .whl and TF could be easily installed via pip install $TF_BINARY_URL.

Just pack all external dependencies, like libmxnet.so and setup properly in setup.py, then python setup.py bdist_wheel >/dev/null and you can get the distributable .whl.

I would let you know after I finished the experiment in TensorBoard and provide a proper solution for MXNet.

zihaolucky avatar Dec 26 '16 03:12 zihaolucky

Great news @zihaolucky! Many thanks for your effort :)

RogerBorras avatar Dec 26 '16 07:12 RogerBorras

Hi, I have DONE this by this way: before you execute bash install-mxnet-XXX.sh , you need do some changes in this .sh file. Don't be afraid,it's very sample.

  1. find code in .shfile like this:
    runme python setup.py install
  2. change this line to this: runme /the/absolute/path/to/anaconda/bin/python setup.py install
  3. save the file,and use the bash to run

DONE

littlelid avatar Jan 19 '17 10:01 littlelid

Fllowing official installation guid,.At last,you shouldn't use sudo python setup.py install Because the sudo option will install mxnet in built in python version.cause anaconda will have a environmental path,you just need to use python setup.py install However before that, you should make all the files in ~/mxnet/python with common accecess right,the most easy way is use sudo chmod -R 777 ~/mxnet/python before install. Note, ~/mxnet/python is the path to your python folder in mxnet,you can use absolute path if any problem happens.

NaiveScript avatar May 17 '17 06:05 NaiveScript

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!

yajiedesign avatar Sep 30 '17 11:09 yajiedesign

Its not installing on Windows on condaprompt when giving conda install mxnet??? Then How i should install it

RajeshRaja27 avatar Jan 06 '18 11:01 RajeshRaja27

We at conda-forge would be happy to help you with the review of an mxnet recipe for conda if someone would be interested in submitting one. Issue ( https://github.com/conda-forge/staged-recipes/issues/4447 ) would be a great place to discuss this if someone would like to step forward.

jakirkham avatar Apr 27 '18 05:04 jakirkham

I figured out how to build mxnet from source for conda for macOS 10.12 and 10.13. Here's the step-by-step guide: https://boknowsit.wordpress.com/2018/05/30/setting-up-mxnet-on-macos-with-conda/

wenboown avatar Jun 19 '18 23:06 wenboown