http://docs.python-guide.org/en/latest/starting/install/win/
- Start Windows PowerShell as Administrator
- Run
Set-ExecutionPolicy Unrestricted
- Set path with
[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27\;C:\Python27\Scripts\", "User")
- Close Admin PowerShell
Download these to a folder:
https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py https://raw.github.com/pypa/pip/master/contrib/get-pip.py
- Open normal user mode PowerShell
- Change directory to the folder containing the above scripts
- Run
python .\ez_setup.py
- Run
python .\get-pip.py
To install packages, for instance ipython, run pip install ipython
.
Get compiled Python packages for Windows here (lxml for example)
PowerShell Community Extensions
How to do less/head/tail/sed in PowerShell
- Use
gc log.txt | select -first 10
forhead
- Use
gc log.txt | select -last 10
fortail
- Use
gc log.txt | more
forless
- Use
gc log.txt | %{ $_ -replace '\d+', '($0)' }
forsed