pythonpathsqlmap

Using two different versions of python but sqlmap needs 2.7


I've recently started using sqlmap and found out it needs python2.7. I installed 2.7 and added it to my PATH along with 3.4. My current path looks like this:

c:\Other-Programs\;c:\Python27;c:\Python34

So When I try to run sqlmap i follow these steps:

1. Open up cmd as admin
2. cd c\:sqlmap
3. python sqlmap.py

At this point, sqlmap informs me that Python 3.4 is incompatible. I tried just doing:

3. python27 sqlmap.py

That returns an error stating that it's not a command.

Basically I want to know how I can specify the version of Python I want to use when running a command for sqlmap.


Solution

  • try using full path of python exe C:\Python27\python.exe sqlmap.py.