python模块安装命令
上一节
下一节
一、先设置安装服务器为国内的镜像(任选一个,执行一次):
豆瓣:
pip config set global.index-url http://pypi.douban.com/simple/
pip config set install.trusted-host pypi.douban.com
清华:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip config set install.trusted-host pypi.tuna.tsinghua.edu.cn
阿里云:
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip config set install.trusted-host pypi.tuna.tsinghua.edu.cn
二、在python的终端(terminal)或jupyter notebook里面输入:pip install 软件包名字
sklearn机器学习包的安装命令
pip install scikit-learn
apriori关联分析安装包的安装命令
pip install apyori
networkx社会网络分析安装包
pip install networkx
tensorflow神经网络安装包
pip install tensorflow

