mirror of
https://github.com/encounter/phantomjs.git
synced 2026-03-30 11:35:11 -07:00
35 lines
959 B
Markdown
35 lines
959 B
Markdown
### DEPENDENCIES
|
|
---------------------------------
|
|
|
|
* Python >= 2.6 (< 3.x)
|
|
* PyQt4 >= 4.8.0
|
|
* Qt >= 4.7.0
|
|
|
|
* python-argparse >= 1.2.1 (Python 2.6 only)
|
|
* PIL (python-imaging-library) >= 1.1.7 (optional; for rendering to GIF)
|
|
|
|
### INSTALLING
|
|
-------------------------
|
|
|
|
Windows
|
|
|
|
> Download and install the required programs.
|
|
>
|
|
[Python](http://www.python.org/download/)
|
|
[PyQt4](http://www.riverbankcomputing.co.uk/software/pyqt/download)
|
|
> Qt4 - PyQt4 comes packaged with the Qt runtime library(s)
|
|
>
|
|
[python-argparse](http://pypi.python.org/pypi/argparse/)
|
|
[PIL](http://www.pythonware.com/products/pil/)
|
|
|
|
Ubuntu
|
|
|
|
> Open a terminal window, and enter the command `sudo apt-get install python-qt4 python-imaging`
|
|
>
|
|
All the required packages should be automatically pulled in and installed.
|
|
|
|
PyPi
|
|
|
|
> You can also install the latest stable release from PyPi with `pip install pyphantomjs`
|
|
Afterward, you can invoke the program with `pyphantomjs`
|