第一个机器学习Project_in_Python——环境配置

这篇博客详细介绍了如何配置Python3.6.10环境以进行机器学习项目,特别是利用Anaconda Navigator和conda命令行工具安装numpy、scikit-learn等必要库,并在PyCharm中设置项目解释器的过程。博主还分享了检查包版本和管理conda环境的实用技巧。
摘要由CSDN通过智能技术生成

目标:

参照一个机器学习的网站(是在我google 'machine learning code’是发现的)的要求,配置python环境。

实现:

我是用anaconda配置的python3.6.10以及代码运行的各种包,需要的包以及版本如下:

版本
numpy1.17.3
scipy1.3.1
matplotlib3.1.1
pandas0.25.1
sklearn0.21.3
  1. 先用 anaconda navigator配置python3.6
  2. 再安装python包:
    在anaconda prompt里,运行 conda install numpy==1.17.3 ……
  3. 打开pycharm,New Project,选择解释器为刚配制好的python环境
  4. 修改setting, Virtualenv environment和conda environment1在这里插入图片描述在这里插入图片描述
    在这里插入图片描述
  5. 然后将网站上的代码复制上去即可

备注:

  1. 命令行中查看包的方法:conda list
  2. 注意:sklearn是scikit-learn
  3. 打开指定版本的anaconda prompt,可以在anaconda navigator图形界面里点击小播放箭头,再点open terminal
  4. anaconda的官网上可以查找各种包是否有,比如:可以搜scikit/numpy等
  5. anaconda需要先将三个路径添加到path中
  6. 包下载顺序:先下载numpy,其次scipy和matplotlib随意,最后scikit-learn
  7. pycharm配置好一次后conda environment再在不同的project中运行类似程序就不用再配置新的,直接使用配制好的python即可

  1. 参考网页 ↩︎

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
OFFICIAL DESCRIPTION Using fun graphics and easy-to-follow instructions, Coding Projects in Python is a straightforward, visual guide that shows young learners how to build their own computer projects using Python, an easy yet powerful free programming language available for download. Perfect for kids ages 10 and over who are ready to take a second step after Scratch, Coding Projects in Python teaches kids how to build amazing graphics, fun games, and useful apps. All they need is a desktop or laptop, and an Internet connection to download Python 3. Step-by-step instructions teach essential coding basics like loops and conditionals, and outline seven fun and exciting projects, including a script that cracks secret codes, a quiz to challenge family and friends, a tic-tac-toe game, and much more. When they are feeling more confident, kids can think creatively and use the tips and tricks provided to personalize and adapt each project. The simple, logical steps in Coding Projects in Python are fully illustrated with fun pixel art and build on the basics of coding, so kids can have the skills to build whatever kind of project they can dream up. Supporting STEM education initiatives, computer coding teaches kids how to think creatively, work collaboratively, and reason systematically, and is quickly becoming a necessary and sought-after skill. DK's computer coding books are full of fun exercises with step-by-step guidance, making them the perfect introductory tools for building vital skills in computer programming.
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值