After building from source. How do I use built version with pip and virtualenv?


So this is a python newbie question. After successfully building from source on my mac. I then did:

cd python
sudo python install

In the mxnet folder where the project was built.

I can then run the examples etc fine.

I understand this installs mxnet in my global python.

If I then later want to set up a project with virtualenv and then do pip install. How can I specify I want this specific version of mxnet that I built from source?


Once you have activated your virtualenv or conda env, go to the python/ folder under the incubator-mxnet folder where you built mxnet from source and run

pip install -e .

You can find this instruction under the Linux Build from Source selection of this page.