Skip to content

Instantly share code, notes, and snippets.

@mizanRahman
Last active December 20, 2015 21:28
Show Gist options
  • Select an option

  • Save mizanRahman/6197391 to your computer and use it in GitHub Desktop.

Select an option

Save mizanRahman/6197391 to your computer and use it in GitHub Desktop.
notes for python

List Comprehensions

S = [x**2 for x in range(10)]

Installing python pip package in windows:

  • First, you need download the distribute setup file, opening the url below on your browser and save it at c:
    http://python-distribute.org/distribute_setup.py

  • open the Windows terminal and install distribute executing the following command: c:\Python27\python.exe c:\distribute_setup.py

  • now, you are able to install pip, just executing the following command: c:\Python27\Scripts\easy_install.exe pip

  • pip will be placed at 'C:\Python27\Scripts' directory. To make pip available from cmd everywhere, you have to add this directory to path variable of windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment