以安装pandas
为例:
from pip._internal import main
# pip install pandas
main(['install','pandas'])
# pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pandas
main(['install','-i','https://pypi.tuna.tsinghua.edu.cn/simple/','pandas'])
以安装pandas
为例:
from pip._internal import main
# pip install pandas
main(['install','pandas'])
# pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pandas
main(['install','-i','https://pypi.tuna.tsinghua.edu.cn/simple/','pandas'])