Skip to content

Instantly share code, notes, and snippets.

@hagenw
Created September 28, 2017 09:06
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hagenw/85f00620067dd01daee7db916d94a7ea to your computer and use it in GitHub Desktop.
Install Matlab Engine API for python without root permissions
#!/bin/bash
# Go to $MATLABROOT/extern/engines/python and run the following line to build the python engine without root permissions.
# See https://uk.mathworks.com/help/matlab/matlab_external/install-matlab-engine-api-for-python-in-nondefault-locations.html
python setup.py build --build-base=$HOME/tmp/build install
@Raynchowkw
Copy link

Hi, I got this:
error: could not create '$HOME': Access is denied

@ddrous
Copy link

ddrous commented Nov 18, 2022

It worked for me by first of all creating the folder tmp/build in the home directory, then by specifying the home folder, i.e. python setup.py build --build-base=/user/home/<yourusername>/tmp/build install

@Raynchowkw
Copy link

Thanks.
I find that It's my folder priviledge problem. I am not the admin.
But your way is helpful and making sense. I will try this next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment