天天看點

mac安裝python開發環境_MAC安裝Python開發環境

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