pip install does not install cssselect dependency
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Low
|
scoder |
Bug Description
When installing lxml via pip using
pip install lxml
it doesn't install the dependency of cssselect needed to run the sample code at http://
```
$ python
Python 3.6.4 (default, Jan 6 2018, 11:51:15)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from lxml.cssselect import CSSSelector
Traceback (most recent call last):
File "/Users/
import cssselect as external_cssselect
ModuleNotFoundE
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/
'cssselect does not seem to be installed. '
ImportError: cssselect does not seem to be installed. See http://
```
Proposed fix: add cssselect as a dependency to the lxml pip installation.
Or alternatively, make it more clear how to install these optional dependencies in the installation notes at http://
## --
Python : sys.version_
lxml.etree : (4, 1, 1, 0)
libxml used : (2, 9, 7)
libxml compiled : (2, 9, 7)
libxslt used : (1, 1, 32)
libxslt compiled : (1, 1, 32)
## -----
Changed in lxml: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/lxml/ lxml/commit/ fd5b6535282ca58 58af4ff4e8d1614 f34bb84d0a