Copy, Translate, and Paste with Google translate API
Only windows can automatically install wxpython using pip, in other OS you need to install wxpython manually.
In windows, pip can help install all the install requirements.
In linux, wxpython can‘t be installed using pip, and we need xclip to help pyperclip work.
Here are the example to install the requirements
sudo apt-get install python-wxtools
sudo apt-get install xclip
For more information, refer to the installation of wxpython and pyperclip
In OS X, wxpython can‘t be installed using pip.
Please refer to the installation of wxpython.
It has not been tested yet. If someone had tried, please create a PR to help improve the documentation.
Install this Application using pip:
pip install CopyTranslator
Run shell command
CopyTranslator


https://github.com/agentzheng/CopyTranslator
Thanks to the developers of wxpython, googletrans, pyperclip.
The code is licensed under Mozilla Public License 2.0.
原文:https://www.cnblogs.com/elliottzheng/p/9060159.html