|
1 | | -1. To install CEF Python 3 type: |
| 1 | +1. To install CEF Python 3 package type: |
2 | 2 |
|
3 | | - sudo python setup.py install |
| 3 | + sudo python setup.py install |
4 | 4 |
|
5 | | - This will install the cefpython3 package to |
6 | | - /usr/local/lib/python2.7/dist-packages/ |
| 5 | + This will install the cefpython3 package to |
| 6 | + /usr/local/lib/python2.7/dist-packages/ |
7 | 7 |
|
8 | | -2. In the same directory that setup.py resides there is |
| 8 | +2. It may also be required to install "libnss3" and "libnspr4" dependencies: |
| 9 | + |
| 10 | + sudo apt-get install libnss3-1d libnspr4-0d |
| 11 | + |
| 12 | +3. On Ubuntu 12 everything should work out of the box. But on Ubuntu 13, |
| 13 | + Ubuntu 14, Fedora 20 and possibly some other OS'es there may be issues |
| 14 | + with wrong version of libudev library. For example to fix it on Ubuntu |
| 15 | + 64bit it is required to create a symbolic link "libudev.so.0" to |
| 16 | + the "libudev.so.1" library with this command: |
| 17 | + |
| 18 | + cd /lib/x86_64-linux-gnu/ |
| 19 | + sudo ln -sf libudev.so.1 libudev.so.0 |
| 20 | + |
| 21 | + The path to libudev.so.1 may be different on other OS'es, see: |
| 22 | + * Ubuntu, Xubuntu, Mint - /lib/x86_64-linux-gnu/ |
| 23 | + * SUSE, Fedora - /usr/lib64/ |
| 24 | + * Arch, Fedora 32bit - /usr/lib/ |
| 25 | + * Ubuntu 32bit - /lib/i386-linux-gnu/ |
| 26 | + |
| 27 | +4. In the same directory that setup.py resides there is |
9 | 28 | an examples/ directory, run some example scripts from there: |
10 | 29 |
|
11 | | - cd examples/ |
12 | | - python wxpython.py |
13 | | - python kivy_.py |
| 30 | + cd examples/ |
| 31 | + python wxpython.py |
| 32 | + python kivy_.py |
14 | 33 |
|
15 | | - cd wx/ |
16 | | - python sample1.py |
17 | | - python sample2.py |
18 | | - python sample3.py |
| 34 | + cd wx/ |
| 35 | + python sample1.py |
| 36 | + python sample2.py |
| 37 | + python sample3.py |
19 | 38 |
|
20 | 39 | Note: |
21 | 40 | Examples directory can also be found in the cefpython3 package directory: |
|
0 commit comments