python 环境的配置和pip 的安装

来源:互联网 发布:网络传真软件破解版 编辑:程序博客网 时间:2024/05/07 11:23

pip 的安装


fengdao at fengdao-2 in~/Downloads

$ pip 

-bash: pip: command not found


检查pip 安装在那个地方

$ which python

/usr/bin/python


1.运行

brew install python --universal --framework 

2.

nstalling Pip

Pip allows you to manage and install Python packages. Run the following command in your terminal.

 sudo easy_install pip 
3.

Installing Virtualenv

Virtualenv allow you to have isolated Python environments for development. Run following command –

 sudo pip install virtualenv 

4.测试安装request包

$ sudo pip install requests



ref:

http://www.tlswebsolutions.com/mac-os-x-lion-setting-up-django-pip-virtualenv-and-homebrew/

https://iainhunter.wordpress.com/2012/11/08/howto-install-python3-pip3-tornado-on-mac/

0 0