搭建机器学习环境

1.下载python安装包
2.配置环境变量包括python和pip
3.进行pip配置镜像

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip config set install.trusted-host mirrors.aliyun.com
pip config list
# 配置文件默认会在AppData\Roaming\pip\pip.ini
pip list # 已安装的包
pip -V # 查看pip的版本和位置
pip --help
pip install notebook # 安装不成功就试试pip install jupyter
# 安装失败的话可以试试
python -m pip install --upgrade pip # 升级pip
pip install --upgrade setuptools
# jupter以及pip下载的第三方包都在这个路径下
D:\software\python\Lib\site-packages
# 在jupter notebook中可以通过下面代码查看
import os
print(os.path.abspath('.'))

#jupyter命令
jupyter notebook
jupyter --config-dir
jupyter --data-dir
jupyter --paths

机器学习一般需要安装的库,根据需要吧

# powershell使用get-history可以查看历史命令
pip install matplotlib
pip install pandas
pip install sklearn
pip install sklearn --use-pep517
pip install scikit-learn
pip install seaborn
# 遇到No module named sklearn,安装下面那个
pip install scikit-learn

Even though Python is an interpreted language,you may need to install Windows C++ compilers in some cases.
Unlike Linux,compilers for Windows are not included by default in the OS.
pip相关命令
安装JupyterNotebook
python关于WindowsCompiler的官方wiki
VisualC++14.0isrequired
Microsoft Visual C++ 14.0 is required
https://blog.csdn.net/yuanfate/article/details/118931158
https://jupyter.org/install

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值