发现python下有工具,包括easy_install和pip。不过,我没有细看easy_install的方法,这就简单的介绍一下pip的安装与使用: 准备: $ curl -O http://python-distribute.org/distribute_setup.py$ python distribute_setup.py 安装: $ curl -O https://raw.g
发现python下有工具,包括easy_install和pip。不过,我没有细看easy_install的方法,这就简单的介绍一下pip的安装与使用:
准备:
$ curl -O http://python-distribute.org/distribute_setup.py $ python distribute_setup.py
安装:
$ curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py $ python get-pip.py
使用方法:
$ pip install SomePackage
$ pip search "query"
$ pip install --upgrade SomePackage==version
补充:
立即学习“Python免费学习笔记(深入)”;
包安装后的py文件路径:/usr/local/lib/python2.7/dist-packages
python怎么学习?python怎么入门?python在哪学?python怎么学才快?不用担心,这里为大家提供了python速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号