当前位置:网站首页>Tips -- solve the problem of no module named matlab.engine
Tips -- solve the problem of no module named matlab.engine
2022-07-28 17:58:00 【A bone loving cat】
1. Problem description
Use matlab Signal processing is a very comfortable thing , But if we want to use python To call MATLAB The result is not happy ?python It's really called MATLAB The library of , That's it matlab.engine modular , But it will appear when used “No module named 'matlab.engine” The problem of :
This is because matlab The question of support , frequently-used matlab The version corresponds to python The version number is :
- Matlab 2016a The highest support python 3.4
- Matlab 2016b,2017a The highest support python 3.5
- Matlab 2017b The highest support python 3.6
- The rest MATLAB Supported by python The version can be installed in the software installation path ( Take my path )
G:\Program Files\MATLAB\R2017b\extern\engines\python
Medium “setup.py” You can see in the file :
Above, MATLAB 2017b Of setup file , It supports python2.7, 3.4, 3.5, 3.6 edition
2. resolvent
- First of all, make sure that MATLAB Whether the version supports the python edition , If not , Suitable can be installed matlab edition , Or change python Version of .
matlab All versions of the cracked version can be found online , Here we use anaconda As an example to demonstrate how to replace python edition :
The first step is to create a new virtual environment , With python3.6 For example
conda create -n py36 python=3.6
Enter the virtual environment :
activate py36
download nb_conda To give jupyter notebook use
conda install nb_conda
such python3.6 The basic environment will be built , The rest is to install some packages you need
- If MATLAB Version support used python edition , You need to do something to MATLAB And python Just go “ binding ”
First step :“win+R” Input “cmd” Open the command line :
The second step : Change the path to MATLAB The installation path , namely “setup.py” The path of the file :
The third step : Open up our python Environmental Science , Here we take the newly established py36 For example :
Step four : Enter the following commands in turn :
python setup.py build --build-base="builddir" install
python setup.py install --prefix="installdir"
python setup.py build --build-base="builddir" install --prefix="installdir"
python setup.py install --user
And then it's done , We can test it , Find out “matlab.engine” Loading successful :
边栏推荐
- Leetcode systematic question brushing (I) -- linked list, stack, queue, heap
- webview里面$(document).width()都是一个值
- Connect other computers to local MySQL
- [unity FPS] tutorial | using unity to make a first person character controller
- 数字滤波器(六)--设计FIR滤波器
- 2022 IDEA (学生邮箱认证)安装使用教程以及基础配置教程
- 数字滤波器(二)--最小相位延时系统和全通系统
- 视频号直播支持商品回放
- 有奖征文 | 2022 云原生编程挑战赛征稿活动开启!
- TensorFlow2.0(十一)--理解LSTM网络
猜你喜欢
![[C language note sharing] custom type: structure, enumeration, Union (recommended Collection)](/img/25/4a17c260b2b506ae1224520d9b85d1.png)
[C language note sharing] custom type: structure, enumeration, Union (recommended Collection)

Leetcode systematic question brushing (II) -- greed, backtracking, recursion
![[p5.js learning notes] mouse interaction event](/img/d3/b811825c8e4db2c5f840ea6b571de4.png)
[p5.js learning notes] mouse interaction event
![[C language note sharing] character function and string function (recommended Collection)](/img/0a/90cd617e3622d95f9bfc3e945a298a.png)
[C language note sharing] character function and string function (recommended Collection)
![[C language note sharing] - dynamic memory management malloc, free, calloc, realloc, flexible array](/img/3f/35c9ff3be5c0ef781ffcb537287a20.png)
[C language note sharing] - dynamic memory management malloc, free, calloc, realloc, flexible array

Complete MySQL interview questions (updated in succession)

封装、继承、多态

IO operation

1.2-hexadecimal conversion

其他电脑连接本地mysql
随机推荐
Tips--解决No module named matlab.engine的问题
[C language note sharing] character function and string function (recommended Collection)
数字滤波器(四)--模拟滤波器转化为数字滤波器
关于localtion 下的root和alias的区别
内部类、常用类
Leetcode systematic question brushing (3) -- binary tree, binary search
企业微信和视频号的关联
abstract、static、final
个人制作:AD库、元件库、封装库及3D模型,免费
Openmv (VI) -- STM32 realizes object recognition and handwritten digit recognition
Use of multithreading
Openmv (II) -- ide installation and firmware download
Domain name resolution problem record
“3·8女王节”限时大促竟让场观、视频号销量翻倍?
ROS custom message and use
[unity] timeline learning notes (VII): Custom clip
$(document).Width() in WebView is a value
封装、继承、多态
如何安装ps的滤镜插件
视频号账号变现的一些方法