我的final.py文件前面的import几行是:
#coding=utf-8
import json, requests, fcntl, random
from Queue import Queue, Empty, Full
from threading import Thread, stack_size
from pyquery import PyQuery
一执行就是下面这个错误:
Traceback (most recent call last):
File "final.py", line 6, in <module>
from pyquery import PyQuery
File "/usr/local/lib/python2.7/dist-packages/pyquery/__init__.py", line 11, in <module>
from .pyquery import PyQuery
File "/usr/local/lib/python2.7/dist-packages/pyquery/pyquery.py", line 9, in <module>
from lxml import etree
File "parsertarget.pxi", line 4, in init lxml.etree (src/lxml/lxml.etree.c:200160)
ImportError: cannot import name getargspec
pip list关于pyquery和lxml的是:
pyquery (1.2.9)
lxml (3.3.6)
python版本是2.7.6。搞了3个多钟了,建虚拟机、virtualenv都不行,求助各位帮忙解决啊,谢谢!
#coding=utf-8
import json, requests, fcntl, random
from Queue import Queue, Empty, Full
from threading import Thread, stack_size
from pyquery import PyQuery
一执行就是下面这个错误:
Traceback (most recent call last):
File "final.py", line 6, in <module>
from pyquery import PyQuery
File "/usr/local/lib/python2.7/dist-packages/pyquery/__init__.py", line 11, in <module>
from .pyquery import PyQuery
File "/usr/local/lib/python2.7/dist-packages/pyquery/pyquery.py", line 9, in <module>
from lxml import etree
File "parsertarget.pxi", line 4, in init lxml.etree (src/lxml/lxml.etree.c:200160)
ImportError: cannot import name getargspec
pip list关于pyquery和lxml的是:
pyquery (1.2.9)
lxml (3.3.6)
python版本是2.7.6。搞了3个多钟了,建虚拟机、virtualenv都不行,求助各位帮忙解决啊,谢谢!