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

2017-01-13 09:09:36 +08:00
 kingmo888

RT ,

Windows>>

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

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

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

1536 次点击
所在节点    Python
8 条回复
a412739861
2017-01-13 09:40:02 +08:00
pyenv 呀
Sylv
2017-01-13 09:40:35 +08:00
pyenv +1
a412739861
2017-01-13 09:46:56 +08:00
@a412739861 不是很清楚 windows 是否可行…
kingmo888
2017-01-13 10:08:26 +08:00
@a412739861 貌似不行。以前搜过
a412739861
2017-01-13 10:22:15 +08:00
好像有 pywin, py.exe (我猜这个可以装好几个 python 版本,重命名下什么的)
来源:http://www.cnblogs.com/wilber2013/p/4774022.html
neoblackcap
2017-01-13 10:52:00 +08:00
提另外一个思路,环境切换到 bash on windows 如何?
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
2017-01-13 11:16:53 +08:00
@wwqgtxx 不是我问呀,应该 @kingmo888
lz 看 ls 现成的方法吧。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/334273

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX