How to use 2to3 tool in windows?

妖精的绣舞 提交于 2019-11-28 20:23:35

You have to use the -w flag to actually write the changes:

python C:\Python32\Tools\scripts\2to3.py -w neo4j.py

See the 2to3.py documentation.

As an addition to the accepted answer,

Copy this line to C:\python32\Scripts\2to3.bat:

@python %~dp0..\tools\scripts\2to3.py %*

After that you'll be able to use

2to3 -w neo4j.py
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!