V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
snake45
V2EX  ›  Python

求教在windows下怎么安装python的软件包,如virtualenv,nose,distribute和pip等

  •  
  •   snake45 · 2011-09-16 10:23:03 +08:00 · 11305 次点击
    这是一个创建于 4607 天前的主题,其中的信息可能已经有所发展或是发生改变。
    看 learn python the hard way 学习python到了

    http://readthedocs.org/docs/learn-python-the-hard-way-zh_cn-translation/en/latest/ex46.html

    然后....就遇到了不知道怎么安装软件包的问题了...

    windows下怎么安装,真的只有在类UNIX去做莫?
    14 条回复    1970-01-01 08:00:00 +08:00
    bhuztez
        1
    bhuztez  
       2011-09-16 10:24:27 +08:00
    virtualenv 可以,pip 估计会悲剧的
    vayn
        2
    vayn  
       2011-09-16 10:25:58 +08:00
    用 cygwin 吧
    snake45
        3
    snake45  
    OP
       2011-09-16 10:29:28 +08:00
    @vayn 说到cygwin....之前有,然后重装了系统就不能用了,还不能删除....

    @bhuztez virtualenv怎么安装,我看virtualenv的目录里有distribute-0.6.19.tar 和 pip-1.0.2.tar
    ayanamist
        4
    ayanamist  
       2011-09-16 10:30:18 +08:00
    @bhuztez 在mingw bash里执行pip就可以了,有一部分直接安装会悲剧(例如ujson),看出错提示把一些文件临时复制过去,就没什么问题了。大部分包都是可以安装的。
    bhuztez
        5
    bhuztez  
       2011-09-16 10:34:38 +08:00
    @ayanamist 用不了 supervisord 的系统,于我如浮云 :-)
    args
        6
    args  
       2011-09-16 12:30:10 +08:00
    装个虚拟机,虚拟机里装个linux,linux里装你说的那些软件。

    不要带着脚铐跳舞。
    snake45
        7
    snake45  
    OP
       2011-09-16 12:38:33 +08:00
    @args ..........目前看来这是最好的办法...现在正在下Fedora
    mywaiting
        8
    mywaiting  
       2011-09-16 12:50:12 +08:00
    在Win下面各种束缚啊,至少也得来个Ubuntu才对得起党和国家的培养啊
    bhuztez
        10
    bhuztez  
       2011-09-16 13:29:27 +08:00
    @oldman 更强的那个就是 pip uninstall 啦
    oldman
        11
    oldman  
       2011-09-16 13:33:19 +08:00
    @bhuztez 用起来怎样?应该能解决lz的问题吧~~
    snake45
        12
    snake45  
    OP
       2011-09-16 14:11:28 +08:00
    @oldman 安装了PIP 怎么使用

    我发现我用的ActiveState ActivePython有PyPM,挺好用,但就是distribute安装有问题,

    C:\Python27\Scripts\easy_install.exe: Permission denied
    oldman
        13
    oldman  
       2011-09-16 14:18:49 +08:00
    @snake45 可能是用easy_install安装自身的缘故,不要在scripts目录里运行easy_install就行了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2809 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 04:01 · PVG 12:01 · LAX 21:01 · JFK 00:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.