按老师教学安装python的library之后, 在命令行中调用显示能找到包, 但是出现以下异常:
Exception caught during initialization of Python interface. Details: On Mac, you must set the environment variable "DYLD_LIBRARY_PATH" to a non-empty string. For more details, see the package documentation.
Traceback (most recent call last):
File "", line 1, in
File "/Users/xi/opt/anaconda3/lib/python3.7/site-packages/Matlab_library_test0502/__init__.py", line 280, in
_pir.get_paths_from_os()
File "/Users/xi/opt
按老师教学安装python的library之后, 在命令行中调用显示能找到包, 但是出现以下异常:
Exception caught during initialization of Python interface. Details: On Mac, you must set the environment variable "DYLD_LIBRARY_PATH" to a non-empty string. For more details, see the package documentation.
Traceback (most recent call last):
File "", line 1, in
File "/Users/xi/opt/anaconda3/lib/python3.7/site-packages/Matlab_library_test0502/__init__.py", line 280, in
_pir.get_paths_from_os()
File "/Users/xi/opt
@xionghaiziander 有点奇怪,提示是语法错误。你再仔细检查一下你的输入。应该不是软件版本的问题,因为import是成功的。如果前面import时出错了,说没找到模块,一般是版本问题,参见前面的回答。课程编程环境:Python 3.6 windows 7, 64 bit Matlab R2018b,Python和MATLAB都是64位。