Skip to main content

Installing Python in Windows

Courtesy:
http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows
http://www.calazan.com/how-to-set-the-proxy-settings-in-windows-via-command-line/
http://docs.python-guide.org/en/latest/starting/install/win.html

http://zetcode.com/tutorials/pyqt4/firstprograms/
http://www.ee.iitb.ac.in/student/~amaldev/contact.html 

Verified with:
OS: Windows 7 (32 bit)
Python version: 2.7.5 (32 bit)

1. start -> cmd
2. Go to command prompt
3. Set the http proxy environment (if your network use proxy)
    set HTTP_PROXY=http://user:password@proxy.domain.com:port
4. Go to http://www.python.org/getit/ and select the version of python and download (I used 'Python 2.7.5 Windows Installer')
5. Click on the (.msi) file and install in default directory (C:\Pytho27)
6. Go to http://docs.python-guide.org/en/latest/starting/install/win.html (It will istall the latest version of Distribute for Windows)
7. Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/#setuptools and install the 'setup tool for your pyton version'
(Install setuptools-0.9.8.win32-py2.7.‌exe if you have installed python 2.7.*)
8. Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/#pip and install 'pip' for your version of python
(Use pip-1.4.win32-py2.7.‌exe if you have installed python 2.7.*)
'Pip' is used to install packages for python.
9. Try to install one package to see if 'pip' is properly installed.
   
    1. start -> cmd
    2. Go to command prompt
    3. Type pip install virtualenv
10. Instead of installing through command prompt, you may visit http://www.lfd.uci.edu/~gohlke/pythonlibs and install the required packages.
(To run the sample code below, you need to install 'PyQt'. Hence install PyQt-Py2.7-x32-gpl-4.9.6-1.‌exe.

11. Try one code: Please visit http://zetcode.com/tutorials/pyqt4/firstprograms/ and copy the sample program and paste it in notepad and save as 'sample.txt'
12. Go to start -> Python 2.7 -> IDLE (Python GUI)
13. File -> open -> directory_where_sample.txt_is_saved/sample.txt
14. A new window will be opened with our sample code. Go to Run -> Run module. Now you should be able to see a blank pop up window (created by the sample python program)

Comments

Popular posts from this blog

Install Modelsim in Ubuntu

Updates (23/09/14): The steps given below are for 32-bit version of Ubuntu. To install Modelsim on 64 bit Ubuntu, please refer to this link.  What is Modelsim? Modelsim is a hardware simulation and debug environment primarily targeted at smaller ASIC and FPGA design ( Ref ) How do I install it? Download Modelsim Linux edition from here   For more information visit me   Go to the download location of the .run file and type chmod +x ModelSimSetup-13.1.0.162.run Visit me for more details Use the command ./ ModelSimSetup-13.1.0.162.run install Modelsim  How do I start Modelsim?   Change your directory to 'Location_where_you_installed_Modelsim '/altera/13.1/modelsim_ase/linuxaloem   Type ./vsim   Verified on: Ubuntu 12.04 LTS

VIS & VL2MV

18/01/2016: -----------     Installing VIS model checker     ----------------------------         Download from: http://vlsi.colorado.edu/~vis/vis_files_2.4.html         Note: First do the installation of glu and then install vis or vl2mv (order doesn't matter)         Installation: Follow the steps in the VIS README file in http://vlsi.colorado.edu/~vis/vis_files_2.4.html         Pitfalls: Dont extract the vis and glu .tar.gz files using gui. Instead use the commands given below             % gzip -dc /tmp/glu-2.4.tar.gz | tar xf -             % gzip -dc /tmp/vis-2.4.tar.gz | tar xf -         Setting environment for VIS          ...

Installing Latex (Miktex+Winedt platform) in windows 7

courtesy: Jinu jayachandran (IIT Bombay) Note: To use latex in windows, you can use the softwares Mikitex and Winedt 1.install the mikitex 2.9 2.Install Winedit 7 3. Start->mikitex 2.9->maintenance->settings->general->change the preference for ‘install missing packages on-the-fly’ to ‘yes’ 4. Start->mikitex 2.9->maintenance(admin)->package manager->repository->change package repository->click ‘packages shall be installed from internet’-> give proxy settings and tick ‘authentication required’-> next->give ldap username and password 5. select any repository 6. Start->mikitex 2.9->maintenance(admin)->package manager->repository->synchronise 7.Start->mikitex 2.9->maintenance(admin)->update(admin) and update by selecting ‘use nearest package repository’ and give proxy settings Now you can start using mikitex using winedit interface. download MikiTex 2.9 download Winedt 7 userguide Note:The ldap i...