Install Python on Windows 7 Script(*.bat)

  1. ::download python
  2. wget --no-check-certificate https://www.python.org/ftp/python/2.7.3/python-2.7.3.msi
  3. ::run installer
  4. python-2.7.3.msi
  5. ::download and run pip
  6. wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
  7. C:\Python27\python.exe get-pip.py
  8. ::add python to path environment variables
  9. setx PATH "%PATH%;C:\Python27"
  10. refreshenv
  11. :: check pip version
  12. python -m pip --version
  13. ::should produce this
  14. ::pip 7.1.2 from C:\Python27\lib\site-packages (python 2.7)
  15. ::run pip module with python and install a simple pyodbc package
  16. python -m pip install pyodbc
Download Script : Install Python 2.7.3 on Windows 7.bat

Please see this if you dont find any of this commands above not installed :
http://mohiplanet.blogspot.com/2015/10/convert-windows-command-prompt-to-linux.html

No comments:

Post a Comment