-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_muse.py
More file actions
46 lines (36 loc) · 1.03 KB
/
Copy pathinstall_muse.py
File metadata and controls
46 lines (36 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/python
# -*- coding: UTF-8 -*-
# MuseBot
# By:D0OR.TEA
# CreatTime: 2020-11-4
# Msg: love or loved?
import os
import json
# 读取配置文件
config_path = os.getcwd()+'\\config.json'
content = open(config_path)
config_json_str = json.load(content)
mirrorUrl = config_json_str['pipmirrorsurl']
print('正在准备安装所需环境...')
print(
"""
|``Python3.x``|
|``os``|
|``re``|
|``sys``|
|``time``|
|``json``|
|``pygame``|
|``_thread``|
|``requests``|
|``webbrowser``|
|``BeautifulSoup``|
"""
)
print('install [ requests ]')
os.system('pip install -i '+mirrorUrl+' requests')
print('install [ beautifulsoup ]')
os.system('pip install -i '+mirrorUrl+' beautifulsoup')
print('install [ pygame ]')
os.system('pip install -i '+mirrorUrl+' pygame')
print('运行完毕,请开启[muse.py] ,如若报错,请重新运行此程序或前往[https://github.com/obentnet/MuseBot/issues]反馈问题')