Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing PyScripter to work with different Python Versions

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:

enter image description here

and also Tools -> Configure Tools

enter image description here

enter image description here

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.

like image 591
djq Avatar asked Aug 07 '11 17:08

djq


People also ask

What version of Python does Pyscripter use?

PyScripter supports Python versions 2.3, 2.4, 2.5, 2.6, 3.0 and 3.1.

How do I switch between installed Python versions?

As a standard, it is recommended to use the python3 command or python3. 7 to select a specific version. The py.exe launcher will automatically select the most recent version of Python you've installed. You can also use commands like py -3.7 to select a particular version, or py --list to see which versions can be used.

How do I use a different version of Python in terminal?

The default Python interpreter is referenced on Windows using the command py. Using the Command Prompt, you can use the -V option to print out the version. You can also specify the version of Python you'd like to run. For Windows, you can just provide an option like -2.7 to run version 2.7.

Can two versions of Python be installed?

If you wish to use multiple versions of Python on a single machine, then pyenv is a commonly used tool to install and switch between versions. This is not to be confused with the previously mentioned depreciated pyvenv script. It does not come bundled with Python and must be installed separately.


3 Answers

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.

like image 194
D K Avatar answered Sep 19 '22 00:09

D K


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.

like image 44
sweetas Avatar answered Sep 20 '22 00:09

sweetas


Easiest way to change the python version in PyScripter is:

Run->Python Version-> Setup Python Versions->Add New Python Version-> Browse to your python exe and select ok.-> Click on Activate Selected Python Version..

Now restart your PyScriptor and your are good to go.

Select python selector option Choose python version

Select default python version

like image 31
Bhaskar Singh Avatar answered Sep 20 '22 00:09

Bhaskar Singh