【网络爬虫】-WP0001-Anaconda_Python2_Python3_Pip环境配置
安装环境:Win7,64位
01-Python3+Pip环境配置
以3.6为主板版本,以2.7为虚拟版本,均安装到环境变量中。
Anaconda3-5.0.0-Windows-x86_64——python3.6
Anaconda2-5.0.0-Windows-x86_64——python2.7
1. 安装python3.6
2. 安装python2.7
有可能直接安装成功
可能接近安装完成,会报错,忽略即可。
安装完成
创建pythn27虚拟环境,直接获得Anaconda的所有安装包
激活虚拟环境,获得python27开头,并关闭环境
conda常用命令
conda info -e #查看已有的环境
conda remove -n env_name –all #删除环境
conda config ? #查看可以使用的命令
conda config –show #可以看到channels等信息
添加清华镜像
conda config –add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config –set show_channel_urls yes
conda config –remove channels defaults
激活python27或其pip的方法,在对应安装目录下,按shift+右键,选择打命令行,则可以,进行python27环境下运行命令行。
pycharm专业版安装
版本:pycharm-professional-2017.2.2
专业版包含web开发配置
注册方法:点击help→Register→License sever ,输入http://idea.liyang.io