Python: Where is freeze.py?

后端 未结 4 846
渐次进展
渐次进展 2021-01-11 19:42

Anyone know where freeze.py is installed for 2.6.5? I can\'t seem to find it anywhere. Did it get pulled out and replaced with something else?

相关标签:
4条回答
  • 2021-01-11 20:21

    Are you getting the error: "needed directory /usr/local/lib/python/lib not found"?

    You need to configure Freeze before you use it. Run "make libainstall" in your Python build tree.

    0 讨论(0)
  • 2021-01-11 20:23

    It's where it's always been, under Tools/ in the source distribution.

    0 讨论(0)
  • 2021-01-11 20:25

    use in linux command locate freeze.py

    root@root:/usr/lib/python2.7$ locate freeze.py
    /usr/lib/python2.7/dist-packages/pip/commands/freeze.py
    /usr/lib/python2.7/dist-packages/pip/commands/freeze.pyc
    /usr/lib/python2.7/dist-packages/pip/operations/freeze.py
    /usr/lib/python2.7/dist-packages/pip/operations/freeze.pyc
    /usr/local/lib/python2.7/dist-packages/pip/commands/freeze.py
    /usr/local/lib/python2.7/dist-packages/pip/commands/freeze.pyc
    /usr/local/lib/python2.7/dist-packages/pip/operations/freeze.py
    /usr/local/lib/python2.7/dist-packages/pip/operations/freeze.pyc
    /usr/share/king-phisher/tools/cx_freeze.py
    
    0 讨论(0)
  • 2021-01-11 20:29

    It took me a while to figure it out: you need package "python-pip" (with dependencies) to be installed. I also got myself "python-tools" installed but that was no help.

    root ~ #> locate freeze.py
    /usr/lib/python2.6/site-packages/pip/commands/freeze.py
    
    0 讨论(0)
提交回复
热议问题