Skip to content

Commit

Permalink
fix: 添加安装pip依赖操作
Browse files Browse the repository at this point in the history
  • Loading branch information
fishros committed Sep 6, 2024
1 parent 9e4a1f0 commit e647d51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/tool_config_python_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def __init__(self):
def run(self):
# 正式的运行
port = "https://pypi.mirrors.ustc.edu.cn/simple/"
AptUtils.install_pkg('python3-pip')
AptUtils.install_pkg('python3-pip',os_command=True)
AptUtils.install_pkg('python-pip',os_command=True)
homes = FileUtils.getusershome()
for home in homes:
pip_dir = os.path.join(home, '.pip')
Expand All @@ -36,6 +37,6 @@ def run(self):
CmdTask("sudo chmod 777 {}".format(pip_conf)).run()

# Verify pip configuration
CmdTask('pip config list').run()
# CmdTask('pip config list').run()

PrintUtils.print_delay('配置成功(如果使用国内源下载包,记得关闭代理)')

0 comments on commit e647d51

Please sign in to comment.