Changing PyScripter to work with different Python Versions

坚强是说给别人听的谎言 提交于 2019-12-05 17:09:30

问题


I'm using PyScripter for writing python programs and I can't figure out how to make it work with Python26 on my computer. When I installed ArcGIS, by default it installs Python26. I then installed PyScripter which found that installation and it worked fine. Later, I installed Python27, and subsequently reinstalled PyScripter.Now Pyscripter uses Python27 and I don't know how to change it.

I've looked at the settings under Tools -> PythonPath and they are as follows:

and also Tools -> Configure Tools

I assume I need to change the python path entries, but what do I change them to? My Python26 installation is found in C:\Program Files (x86)\ArcGIS\Desktop10.0\Bin.


回答1:


If you go to the pyScripter folder in the start menu, it will have a version of pyScripter for Python 2.4 to 3.2. Just run the one corresponding to your Python version.




回答2:


go to the pyscripter shortcut : right click then select Properties, add the option to the target : --PYTHONXX wherein XX the Python version.

ex : "C:\Program Files\PyScripter\PyScripter.exe" --PYTHON24

Copy/paste another shortcut and modify the option to another python version.



来源:https://stackoverflow.com/questions/6974354/changing-pyscripter-to-work-with-different-python-versions

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