Lxml cannot import etree element
- I downloaded the lxml source.
- then unpacked it
- type "python setup.py install".
==> everything went fine.
but now by typing:
import lxml
I get:
Traceback (most recent call last):
File "lxml.py", line 1, in <module>
from lxml import etree
File "/Soft/fox_dev/dev/ut1u3h/dev/lxml.py", line 1, in <module>
from lxml import etree
ImportError: cannot import name etree
Before offering me any solution, I have to tell you that our system administrators and network administrators are managing / intruders.
- I'm not root
- I cannot get the url outside the company (from the server where I am trying to install lxml)
For example, I tried installing pip:
>> python get-pip.py
Downloading/unpacking pip
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip
Cleaning up...
No distributions at all found for pip
Storing debug log for failure in /Home/ut1u3h/.pip/pip.log
I have a Windows machine that can go online. Then I can transfer files from it to the linux server via sftp.
Any idea / solution?
EDIT
ok I tried: http://lxml.de/build.html
at first:
make inplace
python setup.py install
, , python, , . pythonpath... !
EDIT2:
, ... : lxml.py , lxml... , lxml_test.py!!!!