python3 安装python-ESL 控制freeswitch
作者:互联网
此版本只针对python3,可能python2没有这种问题,
yum install python3-devel yum install swig pip3 install python-ESL
再次执行 pip3 install python-ESL,你就可以看到包的路径了
进入 /usr/local/lib64/python3.6/site-packages
//注意你的路径和文件名,将.so和ESL.py复制到python3包里 cp /usr/local/lib64/python3.6/site-packages/ESL.py /usr/local/python3/lib/python3.7/site-packages/ESL.py cp /usr/local/lib64/python3.6/site-packages/_ESL.cpython-36m-x86_64-linux-gnu.so /usr/local/python3/lib/python3.7/site-packages/_ESL.so
成功!
代码测试
#!/usr/bin/env python import string import sys from ESL import * con = ESLconnection("localhost","8021","ClueCon") #are we connected? print("----------") print(con.connected()) print("----------")
标签:packages,python,site,usr,freeswitch,ESL,local,python3 来源: https://www.cnblogs.com/wtcl/p/15757926.html