How to install python-gtk2, python-webkit and python-jswebkit on OSX

I read many of the related questions, but it is still unclear how to do this, since there are many software combinations, and many solutions seem outdated.

What is the best way to install the following in my virtual environment on OSX:

  • python gtk2
  • python-webkit
  • python-jswebkit

Do I need to install GTK + and Webkit as well? If so, how?

I would also appreciate a simple explanation of how these pieces of software work together.

(I'm trying to use scrapyjs , which requires these libraries)

+6
source share
1 answer

You should try using pip (a tool for installing and managing Python packages). https://pypi.python.org/pypi/pip

You can install pip with easy_install:

sudo easy_install pip 

After that, you can install any package using a simple command:

 sudo pip install PyGTK 

for gtk2.

0
source

Source: https://habr.com/ru/post/957875/


All Articles