Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translate -h #1

Open
toneaky opened this issue Jun 19, 2019 · 1 comment
Open

translate -h #1

toneaky opened this issue Jun 19, 2019 · 1 comment

Comments

@toneaky
Copy link

toneaky commented Jun 19, 2019

这个需要配环境变量吗

@mythkiven
Copy link
Owner

mythkiven commented Jun 19, 2019

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

$pip3 list
$pip3 show  mkTranslation
    Name: mkTranslation
    Version: 1.3.1
    Home-page: https://github.com/mythkiven/mkTranslate
    Author: MythKiven
    Author-email: mythkiven@qq.com
    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/ 也没关系,添加路径的套路是一样的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants