Skip to content

Commit

Permalink
fix: 未安装python3-pip 报错
Browse files Browse the repository at this point in the history
  • Loading branch information
fishros committed Sep 6, 2024
1 parent 2fc92d6 commit 9e4a1f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/tool_config_python_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self):
def run(self):
# 正式的运行
port = "https://pypi.mirrors.ustc.edu.cn/simple/"

AptUtils.install_pkg('python3-pip')
homes = FileUtils.getusershome()
for home in homes:
pip_dir = os.path.join(home, '.pip')
Expand All @@ -33,7 +33,7 @@ def run(self):
f.write(data)

# Set the appropriate permissions
CmdTask(f"sudo chmod 777 {pip_conf}").run()
CmdTask("sudo chmod 777 {}".format(pip_conf)).run()

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

0 comments on commit 9e4a1f0

Please sign in to comment.