How can i execute a piece of line before importing a module?

后端 未结 0 890
死守一世寂寞
死守一世寂寞 2021-02-01 00:32

Ok so lets say i made a test.py which consists the code:-

import os
os.system("pip install pyaudio") #I want to run this line first

import pyaudio


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题