在使用Python时,如果需要用到多个运行库,一个一个安装太麻烦,就可以用到一下安装方法。
新建一个文本文档,名字随意,在文档内容中输入安装库的名称。
eg:
numpy
pandas
matplotlib
scikit-learn
tensorflow
pygame
(如果有特定版本需求的话还需要标记版本)
在cmd中运行:
pip install -r TXT文本名称.txt
在使用Python时,如果需要用到多个运行库,一个一个安装太麻烦,就可以用到一下安装方法。
新建一个文本文档,名字随意,在文档内容中输入安装库的名称。
eg:
numpy
pandas
matplotlib
scikit-learn
tensorflow
pygame
(如果有特定版本需求的话还需要标记版本)
在cmd中运行:
pip install -r TXT文本名称.txt