在jupyter notebook里执行以下代码即可 import pip def install(package): pip.main(['install', package]) install('模块名称')