Python之Anaconda入门1-mac版

前言:听说可以使用Anaconda管理Python的各种库,自己电脑IDEA的python版本为2.7,想下一个3.6,就入手了Anaconda,可以切换多个python环境,感觉比较方便。

Python、Pycharm/IDEA、Anaconda等关系

Anaconda 是一个python的发行版,包括了python和很多常见的软件库, 和一个包管理器conda。常见的科学计算类的库都包含在里面了,使得安装比常规python安装要容易,避免了Python安装要手动安装包。
Anaconda是专注于数据分析的Python发行版本,包含了conda、Python等190多个科学包及其依赖项。
Pycharm和IDE都是支持Python开发的开发工具,Pycharm是官网推荐使用的开发工具,有一些从JAVA转过来学习JAVA的开发人员,更希望使用Idea,帮IDEA也支持Python开发(需要下载对应的插件支持)。
--------------------- 
原文:https://blog.csdn.net/gyshun/article/details/84670508 
 

Anaconda下载地址:

https://www.anaconda.com/distribution/#download-section

查看库:terminal输入conda list 就可以查询现在安装了哪些库,常用的numpy, scipy名列其中

安装库:conda install ***  (***为需要的包的名称)

更新库:conda update *** (***为需要的包的名称)

其他命令:

• conda help: Displays the list of conda commands.
• conda list: Lists all packages installed in the current environment.
• conda info: Displays system information.
• conda env list: Displays the list of environments installed. The currently active one is marked by a star *.
• conda install somepackage: Installs a Python package (replacesome package by the name of the package you want to install).
• conda install somepackage=0.7: Installs a specific version of a package.
• conda update somepackage: Updates a Python package to the latest available version.
• conda update anaconda: Updates all packages.
• conda update conda: Updates conda itself.• conda update --all: Updates all packages.
• conda remove somepackage: Uninstalls a Python package.
• conda remove -n myenv --all: Removes the environment named myenv
(replace this by the name of the environment you want to uninstall).
• conda clean -t: Removes the old tarballs that are left over after installation and updates.


除了使用命令行,你可以使用图形界面Navigator管理你的python版本,root 是下载时候选择的python版本,同时你可以选择右侧的搜索框选择未下载的包。

点击create可以创建新的python环境

IDEA配置Python环境

1、Configure-Plugins-marketplace-python

2、New Project-Python-New-CondaEnvironment

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值