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
kingmo888
V2EX  ›  Python

求问 Python3.5 下如何使用低版本的编译环境或者包?

  •  
  •   kingmo888 · 2017-01-13 09:09:36 +08:00 · 1525 次点击
    这是一个创建于 2631 天前的主题,其中的信息可能已经有所发展或是发生改变。

    RT ,

    Windows>>

    有的包最高支持到了 3.4 ,没有 3.4+的包支持,比如 py2exe 什么的。

    这种情况下,大家除了降级 python ,还有其他的办法解决吗?

    以上是举例子哈,不是针对py2exe,可别给“Pyinstaller支持3.5呀”这样的建议

    8 条回复    2017-01-13 11:16:53 +08:00
    a412739861
        1
    a412739861  
       2017-01-13 09:40:02 +08:00 via iPhone
    pyenv 呀
    Sylv
        2
    Sylv  
       2017-01-13 09:40:35 +08:00 via iPhone
    pyenv +1
    a412739861
        3
    a412739861  
       2017-01-13 09:46:56 +08:00 via iPhone
    @a412739861 不是很清楚 windows 是否可行…
    kingmo888
        4
    kingmo888  
    OP
       2017-01-13 10:08:26 +08:00
    @a412739861 貌似不行。以前搜过
    a412739861
        5
    a412739861  
       2017-01-13 10:22:15 +08:00
    好像有 pywin, py.exe (我猜这个可以装好几个 python 版本,重命名下什么的)
    来源:http://www.cnblogs.com/wilber2013/p/4774022.html
    neoblackcap
        6
    neoblackcap  
       2017-01-13 10:52:00 +08:00
    提另外一个思路,环境切换到 bash on windows 如何?
    wwqgtxx
        7
    wwqgtxx  
       2017-01-13 11:13:59 +08:00
    @a412739861
    >py --help
    Python Launcher for Windows Version 3.6.150.1013

    usage: py [ launcher-arguments ] [ python-arguments ] script [ script-arguments ]

    Launcher arguments:

    -2 : Launch the latest Python 2.x version
    -3 : Launch the latest Python 3.x version
    -X.Y : Launch the specified Python version
    -X.Y-32: Launch the specified 32bit Python version
    a412739861
        8
    a412739861  
       2017-01-13 11:16:53 +08:00
    @wwqgtxx 不是我问呀,应该 @kingmo888
    lz 看 ls 现成的方法吧。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1553 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 17:12 · PVG 01:12 · LAX 10:12 · JFK 13:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.