新建py文件,输入以下命令然后运行:
import os
os.system("pip install requests -i https://pypi.douban.com/simple")
os.system("pip install beautifulsoup4 -i https://pypi.douban.com/simple")
import os
os.system("pip install requests -i https://pypi.douban.com/simple")
os.system("pip install beautifulsoup4 -i https://pypi.douban.com/simple")