Mac自带了Python2.7所以,此先跳过 为了软件安装方便,先安装Brew,在终端中输入ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 安装MariaDB brew install mariadb 启动命令 mysql.server restart 开机启动:ln -sfv /usr/local/opt/mariadb/*.plist ~/Library/LaunchAgents 安装pip 下载最新的get-pip.py: wget https://bootstrap.pypa.io/get-pip.py 运行python get-pip.py 安装 Django sudo pip install django 安装lxml sudo C_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2/libxml:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include pip install lxml 安装Scrapy sudo pip install scrapy install pycharm 4.x
MAC安装Python开发环境
点赞
收藏