Ubuntu16.04配置python环境

Ubuntu16.04配置python环境

  • Ubuntu1604配置python环境
    • 1安装更新python
    • 2安装pycharm
    • 3更新pip
    • 4安装scrapy

1、安装更新python

ubuntu16.04自带python2.7.11+、3.5.1+
执行如下命令更新就可

sudo apt-get update
sudo apt-get upgrade

2、安装pycharm

下载http://www.jetbrains.com/pycharm/download/
解包

sudo tar -zxvf pycharm-professional-2016.2.3.tar.gz

安装

sudo sh /pycharm-professional-2016.2.3/bin/pycharm.sh

快捷方式

把/usr/share/applications/Pycharm用鼠标拖出来就可

3、更新pip

sudo pip install --upgrade pip

pip更新有问题时,执行如下命令在更新pip就可

sudo rm -rf ~/.pip/cache/
sudo rm -rf /root/.pip/cache

4、安装scrapy

pip install --upgrade Twisted
sudo apt-get install libssl-dev
pip install Scrapy

你可能感兴趣的:(开发环境配置)