python安装模块

python安装模块能够经过如下方式安装python

 

easy_installide

  1. Install EasyInstall(sudo apt-get install python-setuptools python-dev build-essential)ui

  2. easy_install mechanize(须要在root权限下).net

Easy install will automatically download the latest source code release and install it.code

Source code releaseget

  1. Download the source from one of the links belowit

  2. Unpack the source distribution and change directory to the resulting top-level directory.io

  3. python setup.py installtable

This is a stable release.class

      python setup.py install

 root@yangjie-v:/usr/local/lib/python2.6/dist-packages# ls
easy-install.pth  mechanize-0.2.4-py2.6.egg

 

 

发现安装了模块始终使用不了里面的参数,才发现用户环境不对,我不是在超级用户下面,须要切换到超级用户目录下

相关文章
相关标签/搜索