Python 3.6.4环境下无法安装SpringPython的问题排查
Hey there, let's figure out this confusing error you're running into:
That error is actually a bit misleading. The stable, officially released versions of SpringPython (like the 1.3.1 version pip installs by default) only support Python 2.x. When it says "supports Python 2.6 and higher", this was written back around 2013—back then, "higher" meant newer Python 2 releases (like 2.7), not Python 3. Python 3 made huge changes to syntax and the standard library that this old version of SpringPython wasn't built to handle, so even though your Python 3.6 is technically "higher" than 2.6, it's incompatible with the default release.
If you need to use SpringPython on your Python 3.6 setup, you'll have to install the Python 3-adapted development branch instead of the standard PyPI version:
- First, make sure you have
gitandsetuptoolsinstalled on your Windows machine. - Clone the Python 3-specific branch of the SpringPython repository to your local system.
- Open a command prompt, navigate to the cloned folder, then run either
python setup.py installorpip install .to install the local, Python 3-compatible build.
A quick note: this development branch hasn't had a formal release, so there might be some untested edge cases. It's smart to run basic functionality checks before using it in any critical projects.
内容的提问来源于stack exchange,提问作者MMMMS

