Email: helpdesk@telkomuniversity.ac.id

This Portal for internal use only!

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Categories
  • Microsoft
    • Microsoft Apps
    • Office
    • Operating System
    • VLS
    • Developer Tools
    • Productivity Tools
    • Database
    • AI + Machine Learning
    • Middleware System
    • Learning Services
    • Analytics
    • Networking
    • Compute
    • Security
    • Internet Of Things
  • Adobe
  • Matlab
  • Google
  • Visual Paradigm
  • WordPress
    • Plugin WP
    • Themes WP
  • Opensource
  • Others
More Categories Less Categories
  • Get Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • My Account
    • Download
    • Cart
    • Checkout
    • Login
  • About Us
    • Contact
    • Forum
    • Frequently Questions
    • Privacy Policy
  • Forum
    • News
      • Category
      • News Tag

iconTicket Service Desk

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Menu
  • Home
    • Download Application Package Repository Telkom University
    • Application Package Repository Telkom University
    • Download Official License Telkom University
    • Download Installer Application Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • All Pack
    • Microsoft
      • Operating System
      • Productivity Tools
      • Developer Tools
      • Database
      • AI + Machine Learning
      • Middleware System
      • Networking
      • Compute
      • Security
      • Analytics
      • Internet Of Things
      • Learning Services
    • Microsoft Apps
      • VLS
    • Adobe
    • Matlab
    • WordPress
      • Themes WP
      • Plugin WP
    • Google
    • Opensource
    • Others
  • My account
    • Download
    • Get Pack
    • Cart
    • Checkout
  • News
    • Category
    • News Tag
  • Forum
  • About Us
    • Privacy Policy
    • Frequently Questions
    • Contact
Home/Matlab/matlab.engine ImportError

matlab.engine ImportError

PuTI / 2025-02-03
matlab.engine ImportError
Matlab News

I wanted to call Matlab from Python using the matlab engine. I’m on Macbook Air M3 chip. I have successfully done so and this is a brief summary of the setup:
I used Matlab R2024a Apple Silicon version and Python 3.9.
I created an environment (mac_apple for short) using Anaconda and installed matlab engine by ‘pip install matlabengine==24.1.2’.
I use Spyder as IDE. I was able to import and use the matlab engine without any problem.
Now, I need to use an essential Python pkg, and it is only compatible with the x86 architecture but not the ARM architechture. To work around this:
I created a new environment (mac_86 for short) using Anaconda but configured it to use the x86 architecture by ‘conda config –env –set subdir osx-64’.
I installed the Matlab R2024b Intel version on the same machine. This is because I think when installing matlab engine to this env it will be pulled from the x86 architechture, so I need to install a x86 version (or Intel version) Matlab. I chose a different version than R2024a so that I can install the R2024b in the default location, which I think may save me from some trouble.
Then I installed matlab engine by ‘python -m pip install matlabengine==24.1.2’ (the command recommded by https://pypi.org/project/matlabengine/, I didn’t use this the first time because I wasn’t aware of this recommendation).
In Spyder I switched the Python Interpreter to this new env, but I got ImportError when importing matlab engine. Please see screenshot below. The error message looks like the paths all point to the Apple Silicon version of Malab not the Intel Version.
By any chance, could any one help me figure this out? I don’t understand why this is happening as I’m following pretty much the same procedure I used before. If possible, I’d like a solution that allows me to make both environments work, i.e., use x86-based matlabengine in mac_86 and use Apple silicon-based matlabengine in mac_apple. Thank you in advance!I wanted to call Matlab from Python using the matlab engine. I’m on Macbook Air M3 chip. I have successfully done so and this is a brief summary of the setup:
I used Matlab R2024a Apple Silicon version and Python 3.9.
I created an environment (mac_apple for short) using Anaconda and installed matlab engine by ‘pip install matlabengine==24.1.2’.
I use Spyder as IDE. I was able to import and use the matlab engine without any problem.
Now, I need to use an essential Python pkg, and it is only compatible with the x86 architecture but not the ARM architechture. To work around this:
I created a new environment (mac_86 for short) using Anaconda but configured it to use the x86 architecture by ‘conda config –env –set subdir osx-64’.
I installed the Matlab R2024b Intel version on the same machine. This is because I think when installing matlab engine to this env it will be pulled from the x86 architechture, so I need to install a x86 version (or Intel version) Matlab. I chose a different version than R2024a so that I can install the R2024b in the default location, which I think may save me from some trouble.
Then I installed matlab engine by ‘python -m pip install matlabengine==24.1.2’ (the command recommded by https://pypi.org/project/matlabengine/, I didn’t use this the first time because I wasn’t aware of this recommendation).
In Spyder I switched the Python Interpreter to this new env, but I got ImportError when importing matlab engine. Please see screenshot below. The error message looks like the paths all point to the Apple Silicon version of Malab not the Intel Version.
By any chance, could any one help me figure this out? I don’t understand why this is happening as I’m following pretty much the same procedure I used before. If possible, I’d like a solution that allows me to make both environments work, i.e., use x86-based matlabengine in mac_86 and use Apple silicon-based matlabengine in mac_apple. Thank you in advance! I wanted to call Matlab from Python using the matlab engine. I’m on Macbook Air M3 chip. I have successfully done so and this is a brief summary of the setup:
I used Matlab R2024a Apple Silicon version and Python 3.9.
I created an environment (mac_apple for short) using Anaconda and installed matlab engine by ‘pip install matlabengine==24.1.2’.
I use Spyder as IDE. I was able to import and use the matlab engine without any problem.
Now, I need to use an essential Python pkg, and it is only compatible with the x86 architecture but not the ARM architechture. To work around this:
I created a new environment (mac_86 for short) using Anaconda but configured it to use the x86 architecture by ‘conda config –env –set subdir osx-64’.
I installed the Matlab R2024b Intel version on the same machine. This is because I think when installing matlab engine to this env it will be pulled from the x86 architechture, so I need to install a x86 version (or Intel version) Matlab. I chose a different version than R2024a so that I can install the R2024b in the default location, which I think may save me from some trouble.
Then I installed matlab engine by ‘python -m pip install matlabengine==24.1.2’ (the command recommded by https://pypi.org/project/matlabengine/, I didn’t use this the first time because I wasn’t aware of this recommendation).
In Spyder I switched the Python Interpreter to this new env, but I got ImportError when importing matlab engine. Please see screenshot below. The error message looks like the paths all point to the Apple Silicon version of Malab not the Intel Version.
By any chance, could any one help me figure this out? I don’t understand why this is happening as I’m following pretty much the same procedure I used before. If possible, I’d like a solution that allows me to make both environments work, i.e., use x86-based matlabengine in mac_86 and use Apple silicon-based matlabengine in mac_apple. Thank you in advance! matlab engine, python, mac MATLAB Answers — New Questions

​

Tags: matlab

Share this!

Related posts

Warning: Error updating FunctionLine in using fplot
2025-05-12

Warning: Error updating FunctionLine in using fplot

Solid creation Simulink, simscape multibody: stuck in loading
2025-05-12

Solid creation Simulink, simscape multibody: stuck in loading

Does Matlab 2023b support Classification learner like what I got trainned in ML Module?
2025-05-12

Does Matlab 2023b support Classification learner like what I got trainned in ML Module?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Categories

  • Matlab
  • Microsoft
  • News
  • Other
Application Package Repository Telkom University

Tags

matlab microsoft opensources
Application Package Download License

Application Package Download License

Adobe
Google for Education
IBM
Matlab
Microsoft
Wordpress
Visual Paradigm
Opensource

Sign Up For Newsletters

Be the First to Know. Sign up for newsletter today

Application Package Repository Telkom University

Portal Application Package Repository Telkom University, for internal use only, empower civitas academica in study and research.

Information

  • Telkom University
  • About Us
  • Contact
  • Forum Discussion
  • FAQ
  • Helpdesk Ticket

Contact Us

  • Ask: Any question please read FAQ
  • Mail: helpdesk@telkomuniversity.ac.id
  • Call: +62 823-1994-9941
  • WA: +62 823-1994-9943
  • Site: Gedung Panambulai. Jl. Telekomunikasi

Copyright © Telkom University. All Rights Reserved. ch

  • FAQ
  • Privacy Policy
  • Term

This Application Package for internal Telkom University only (students and employee). Chiers... Dismiss