I used Anaconda for python.
python2 is installed in
D:\Python\Anaconda2
python3 is installed in
D:\Python\Anaconda3
python3 is the default.
created two environmental variables with name: python2 and python2 and selected respective python.exe from different folder respectively.
my setup.py supports only python2.
when i run command from cmd python setup.py install it says it does not support.
If I rename D:\Python\Anaconda2\python.exe to D:\Python\Anaconda2\python2.exe and change the environment path file accordingly it works. But I dnt want to change the file name (as it may break other apps, like conda says unable to create process, etc).
Windows 10 Pro, 64 bit.
setup.py location:
E:\Program Files\IBM\ILOG\CPLEX_Studio1251\cplex\python\x64_win64
How to overcome this? Want
python2 setup.py installfor python2 compiler andpython3 setup.py installfor python3 compiler, without renaming.How to install setup.py by running
D:\Python\Anaconda2\python.exe?



mklink python2.exe python.exe. Do the same for Python 3, and add both directories toPATH, with the preferred python.exe directory listed first. - Eryk Sunpython.exeonly - Dr.PB