安装pip,distribute,nose和virtualenv

本文介绍了如何离线安装Python包pip, distribute, nose和virtualenv,强调了它们在项目准备阶段的重要性。通过下载压缩包,解压后在Powershell中进行安装。nose作为单元测试框架,其特点包括自动测试用例发现。virtualenv用于创建隔离的Python环境。此外,还提到了在线安装pip和其他包的方法,以及配置环境变量以全局使用这些包。" 41960617,2353955,Java重构:影片租赁系统改进,"['后端开发', 'Java', '重构', '设计模式']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我们开始进行项目制作后,就要开始将各种环境安装好,正所谓“工欲善其事必先利其器”,这是进行项目之前必不可少的一步。

  • 离线安装
  1. pip from http://pypi.python.org/pypi/pip
  2. distribute from http://pypi.python.org/pypi/distribute
  3. nose from http://pypi.python.org/pypi/nose
  4. virtualenv from http://pypi.python.org/pypi/virtualenv

分别将这些包在对应网站下载下来(注意是压缩包类型的),在本地解压完成后,开始进行安装。在Powershell上安装过程中,路径是要在解压后的文件中。输入指令python setup.py install ,进行离线安装。
示例(nose的安装):

PS C:\Users\15222\test\nose-1.3.7> python setup.py install
running install
running bdist_egg
running egg_info
writing nose.egg-info\PKG-INFO
writing top-level names to nose.egg-info\top_level.txt
writing dependency_links to nose.egg-info\dependency_links.txt
writing entry points to nose.egg-info\entry_points.txt
reading manifest file 'nose.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'doc\.build'
writing manifest file 'nose.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\nose
copying build\lib\nose\case.py -> build\bdist.win-amd64\egg\nose
copying build\lib\nose\commands.py -> build\bdist.win-amd64\egg\nose
copying build\lib\nose\config.py -> build\bdist.win-amd64\egg\nose
copying build\lib\nose\core.py -> build\bdist.win-amd64\egg\nose
copying build\lib\nose\exc.py -> build\bdist.win-amd64\egg\nose
creating build\bdist.win-amd64\egg\nose\ext
copying build\lib\nose\ext\dtcompat.py -> build\bdist.win-amd64\egg\nose\ext
copying build\lib\nose\ext\__init__.py -> build\bdist.win-amd64\egg\nose\ext
copying build\lib\nose\failure.py -> build\bdist.win-amd64\egg\nose
copying build\lib\nose\importer.py -> build\bdist.win-amd64\egg\nose
copying build\lib\nose\inspector.py -> build\bdist.win-amd64\egg\nose
copying build\lib\nose\loader.py -> build\bdist.win-amd64\egg\nose
creating build\bdist.win-amd64\egg\nose\plugins
copying build\lib
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值