mkTranslate icon indicating copy to clipboard operation
mkTranslate copied to clipboard

translate -h

Open toneaky opened this issue 6 years ago • 1 comments

这个需要配环境变量吗

toneaky avatar Jun 19 '19 04:06 toneaky

需要的,先看下安装信息:

$pip3 list
$pip3 show  mkTranslation
    Name: mkTranslation
    Version: 1.3.1
    Home-page: https://github.com/mythkiven/mkTranslate
    Author: MythKiven
    Author-email: [email protected]
    License: MIT
    Location: /usr/local/lib/python3.7/site-packages
    Requires: requests

安装位置: /usr/local/lib/,对应的命令行命令 translate 就在 /usr/local/bin/目录下

然后看下系统配置的路径是否包含/usr/local/bin/$echo $PATH 如果没有 /usr/local/bin/,就需要添加路径:

$vim ~/.bash_profile
export PATH="/usr/local/bin:$PATH"
$source ~/.bash_profile
$which translate
/usr/local/bin/translate

如果安装路径不是 /usr/local/lib/ 也没关系,添加路径的套路是一样的

mythkiven avatar Jun 19 '19 05:06 mythkiven