wendu 发表于 2018-8-4 08:43:47

python安装模块

  python安装模块可以通过以下方式安装
  easy_install

[*]  Install EasyInstall(sudo apt-get install python-setuptools python-dev build-essential)
[*]  easy_install mechanize(需要在root权限下)

  Easy install will automatically download the latest source code>
  Source code>
[*]  Download the source from one of the links below
[*]  Unpack the source distribution and change directory to the resulting top-level directory.
[*]  python setup.py install

  This is a stable>

[*]  mechanize-0.2.4.tar.gz
  python setup.py install
  root@yangjie-v:/usr/local/lib/python2.6/dist-packages# ls
  easy-install.pthmechanize-0.2.4-py2.6.egg
  发现安装了模块始终使用不了里面的参数,才发现用户环境不对,我不是在超级用户下面,需要切换到超级用户目录下
页: [1]
查看完整版本: python安装模块