How can I fill an empty pyversion library?
8 次查看(过去 30 天)
显示 更早的评论
I am attempting to call Python2.7 using MatLab. However, I continue to get the following error. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/224585/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/224585/image.png)
I have followed the problem solving page linked below. The first three checks seemed to be okay, but I cannot check if the Python Module is on the Python Search Path because I cannot call anything using "py.___"
When I run pyversion, I think I see the problem. The output of pyversion is below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/224586/image.png)
Everything looks good except the library is empty. The few examples I have seen have show an wide variety in what should be in the library. (Examples have been linked below)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/224587/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/224588/image.png)
I am running Windows10 and using 64-bit MatLab and Python. MATLAB Version: 9.2.0.556344 (R2017a)
2 个评论
Luis Miguel Lopez Ramos
2020-6-6
Hi,
I have the same problem.
@Matthew, did you get a solution?
thanks,
Luis Miguel
Juan Pablo Rivera Caicedo
2021-6-1
please check this.
- Instalar python2.7-dev (sudo apt-get install -y python2.7-dev)
回答(2 个)
Christian Niklaus
2020-9-21
Hi Matthew
I had the same problem. In my case, the problem was that the python version was not within the system path in Windows. I solved the problem by adding the installation path of python (in your case C:\Python27) to the Path variable.
0 个评论
Tyson Hill
2022-11-18
You must have a version of Python that is compatible with MATLAB. Currently, MATLAB supports versions 2.7, 3.6, 3.7, and 3.8. For more info, copy and past the following into your MATLAB comand window.
web(fullfile(docroot, 'matlab/matlab_external/install-supported-python-implementation.html'))
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!