当前位置:网站首页>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 :
边栏推荐
- Internal class, common class
- 视频号、公众号间导流便捷可观
- Compilation principle learning notes 2 (Introduction to syntax analysis)
- The solution to the problem that the computer cannot be charged
- Tips--解决No module named matlab.engine的问题
- Tips--对卷积的物理意义的理解
- Leetcode systematic question brushing (II) -- greed, backtracking, recursion
- 从0到1:基于云开发的投票小程序开发笔记
- Leetcode systematic question brushing (3) -- binary tree, binary search
- MySQL详解
猜你喜欢

Idea error running 'application' command line is too long solution

Tips--解决No module named matlab.engine的问题

封装、继承、多态

MySQL and idea connection

Openmv (VI) -- STM32 realizes object recognition and handwritten digit recognition

centos8使用docker安装wordpress+mysql配置文件中WORDPRESS_DB_HOST的理解
![[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)
![[p5.js learning notes] basic knowledge of code drawing](/img/22/30218278b4663e13bf73b25b3bd66f.png)
[p5.js learning notes] basic knowledge of code drawing

Openpcd installation process record

1.2-hexadecimal conversion
随机推荐
个人制作:AD库、元件库、封装库及3D模型,免费
Methods, functions
wordpress提示建立数据库连接时出错
ROS scattered knowledge points and error resolution
【Unity】Sprite九宫格到底怎么玩?
视频号7天销售额超百万
Tensorflow2.0 (XII) -- realize simple RNN and LSTM networks
关于localtion 下的root和alias的区别
横向listview的最佳实现——RecycleView
IO的操作
Use of multithreading
centos8使用docker安装wordpress+mysql配置文件中WORDPRESS_DB_HOST的理解
【无标题】
How to bind idea with code cloud
Openmv (IV) -- STM32 to realize feature detection
[unity] timeline learning notes (VII): Custom clip
数字滤波器(五)--设计IIR滤波器
[advanced C language] - function pointer
1.1- notes
Electrotechnics self study notes 1.20