xinebf / google-translate-for-goldendict

Add Google translate to GoldenDict
GNU General Public License v3.0
274 stars 58 forks source link

mac中无法运行 #35

Open hicaicai opened 3 years ago

hicaicai commented 3 years ago

提示出现这个:/资源库/开发人员/Command Linetoo/s/usr/bin/python:没有名为googletranslate的模块

按照操作设置安装在mac中,mac默认是python2,我改命令为python3还是不行

siwing commented 3 years ago

可以试一下使用对应Python环境的完整路径(即安装了googletranslate模块的Python环境),以Windows系统为例,假设对应Python程序的完整路径为"D:\Software\miniconda\envs\goldendict\python.exe",那么在golden dict中将命令设置为:

D:\Software\miniconda\envs\goldendict\python -m googletranslate zh-CN %GDWORD% -s "translate.google.cn"
hicaicai commented 3 years ago

好的,谢谢回复🙏 siwing @.***>於 2021年8月29日 週日,下午11:38寫道:

可以试一下使用对应Python环境的完整路径(即安装了googletranslate模块的Python环境),以Windows系统为例,假设对应Python程序的完整路径为"D:\Software\miniconda\envs\goldendict\python.exe",那么在golden dict中将命令设置为:

D:\Software\miniconda\envs\goldendict\python -m googletranslate zh-CN %GDWORD% -s "translate.google.cn"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xinebf/google-translate-for-goldendict/issues/35#issuecomment-907813083, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNDLLDSHQORTTPDNSKY7ZTT7JH73ANCNFSM5A3PO4HA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.