1 |
Em 8 de julho de 2010 18:35, Dalton Barreto <daltonmatos@×××××.com> escreveu: |
2 |
|
3 |
> Poste a saída desse comando: |
4 |
> |
5 |
> $ equery f pyopengl |
6 |
|
7 |
Po, me atrazei, tava escrevendo isso e tu mandou a pergunta antes de mim. :P |
8 |
|
9 |
Mas eu acho que é útil também um "eselect python list", para saber que |
10 |
versão do pytohn está configurada. |
11 |
|
12 |
Aqui por exemplo: |
13 |
|
14 |
$ equery f pyopengl |
15 |
... |
16 |
/usr/lib/python2.6/site-packages/OpenGL |
17 |
... |
18 |
|
19 |
$ eselect python list |
20 |
Available Python interpreters: |
21 |
[1] python2.3 |
22 |
[2] python2.6 * |
23 |
[3] python3.1 |
24 |
|
25 |
$ python |
26 |
Python 2.6.5 (release26-maint, Jun 26 2010, 13:35:52) |
27 |
[GCC 4.4.4] on linux2 |
28 |
Type "help", "copyright", "credits" or "license" for more information. |
29 |
>>> import OpenGL |
30 |
>>> from OpenGL.GL import * |
31 |
>>> from OpenGL.GLU import * |
32 |
>>> |
33 |
|
34 |
|
35 |
Teste: |
36 |
# eselect python set 3 |
37 |
# eselect python list |
38 |
Available Python interpreters: |
39 |
[1] python2.3 |
40 |
[2] python2.6 |
41 |
[3] python3.1 * |
42 |
# python |
43 |
Python 3.1.2 (release31-maint, Jun 26 2010, 12:13:10) |
44 |
[GCC 4.4.4] on linux2 |
45 |
Type "help", "copyright", "credits" or "license" for more information. |
46 |
>>> import OpenGL |
47 |
Traceback (most recent call last): |
48 |
File "<stdin>", line 1, in <module> |
49 |
ImportError: No module named OpenGL |
50 |
>>> |
51 |
|
52 |
Por isso cola o "eselect python list" aí pra gente ver o que está acontecendo. |
53 |
|
54 |
[]s |
55 |
|
56 |
-- |
57 |
thiago |