python机器学习基础教程01-环境搭建

书籍源代码

github上源代码
https://github.com/amueller/introduction_to_ml_with_python

安装anaconda虚拟环境

创建虚拟环境

conda create -p E:\Python\envs\mlstupy35  python=3.5
# 激活环境
conda activate E:\Python\envs\mlstupy35
# 创建学习目录
cd G:\Python\mlstu

安装所需要的包

conda install pandas
conda install matplotlib
conda install numpy
conda install scipy
conda install ipython
conda install scikit-learn

生成requirements.txt

pip freeze > requirements.txt

结果

backcall==0.2.0
certifi==2020.6.20
colorama==0.4.4
cycler==0.10.0
decorator==5.1.1
ipython==6.5.0
ipython-genutils==0.2.0
jedi==0.12.1
kiwisolver==1.0.1
matplotlib==3.0.0
numpy==1.14.2
pandas==0.23.4
parso==0.8.0
pickleshare==0.7.5
prompt-toolkit==1.0.15
Pygments==2.11.2
pyparsing==2.4.7
python-dateutil==2.8.2
pytz==2021.3
scikit-learn==0.20.0
scipy==1.1.0
simplegeneric==0.8.1
six==1.16.0
tornado==5.1.1
traitlets==4.3.2
wcwidth==0.2.5
win-unicode-console==0.5
wincertstore==0.2

ide

ide选择pycharm社区版

你可能感兴趣的:(python,python,机器学习,开发语言)