pythonpip怎么调用
pip是一个安装和管理Python包的工具,python安装包的工具有easy_install,setuptools,pip,distribute等。distribute是setuptools
的替代品,是对标准库disutils模块的增强,我们知道disutils主要是用来更加容易的打包和分发包,特别是对其他的包有依赖的包。
distribute被创建是因为Setuptools包不再维护了。而pip是easy_install的替代品。
安装pip
apt-getinstallpython-pip
升级
pipinstall-Upip
pip的功能
安装包:
root@localhost:~#pipinstalldjango
Collectingdjango
UsingcachedDjango-1.9.5-py2.py3-none-any.whl
Installingcollectedpackages:django
Successfullyinstalleddjango-1.9.5
卸载包
pipuninstalldjang
以上内容为大家介绍了python培训之pip怎么调用,希望对大家有所帮助,如果想要了解更多Python相关知识,请关注IT培训机构:千锋教育。

相关推荐HOT
更多>>
python__setattr__的属性设置
python中__setattr__的属性设置1、说明定义类对象管理属性并将属性名以及值存储在一个实例对象中。self.attrname以及instance.attrname将会调用...详情>>
2023-11-10 21:05:07
python字典中添加新的键值
python字典中添加新的键值1、字典是动态结构,可以随时添加新的元素。如在字典中添加bullet子弹的x和y坐标。print(bullet)可以看到字典中有了bu...详情>>
2023-11-10 15:45:55
pythonDecimal解决计算问题
pythonDecimal解决计算问题1、当python中的浮点类型计算出现不准确结果时,Decimal用于纠正。经验证,Decimal不直接处理浮点类型数据,而是将浮...详情>>
2023-11-10 14:43:40
python静态方法的用法
python静态方法的用法1、通过装饰器@staticmethod定义静态方法。2、@staticmethod必须写在方法上。3、在静态方法中访问实例属性和实例方法会导...详情>>
2023-11-10 14:02:20