Install python3$ Brew Install Python3python3--version View installation location: $ python3-c "Import sys;print (Sys.path)" Using the watercress PyPI mirror $ mkdir ~/. pip$ Vim ~/.pip/pip.conf[global]timeout = 6000index-url = Http://pypi.douban.com/simple[install]use-mirrors = Truemirrors = Http://pypi.douban.comtrusted-host = pypi.douban.com Two pypi.douban.com can be replaced with other mirrors. Update the PIP version of the system: OS X 10.11.2 system with Python 2.7.10 and Pip is an older version, you can update the sudo pip install--upgrade pip$ pip--versionpip 7.1.2 fro with the following command M/library/python/2.7/site-packages (Python 2.7) Install Flask: Install for System Python 2.7.10: $ sudo pip install Flask for Homebrew Python3 installation: $ PIP3 Install flask Installing other frameworks Similarly, such as installing django:$ PIP3 install Django
--
The Pip.config file for the supplemental 1:windows system should be placed in%userprofile%\pip\pip.config
Add 2: Domestic open source Mirror Site Summary
Install Python3 on OSX using PIP installation flask