Everyone's code online refers to sudo apt-get #whatever#
but windows doesn't have that feature. I heard of something called Powershell but I opened it and have no idea what it is.
I just want to get a simple environment going and lxml so I could scrape from websites.
Go to the regular command prompt and try pip install lxml
. If that doesn't work, remove and reinstall python. You'll get a list of check marks during installation, make sure you check pip and try pip install lxml
again afterwards.
pip
stands for pip installs packages, and it can install some useful python packages for you.
Try downloading the lxml
package from here, then, on the command prompt, type in:
pip install path/to/lxml_package_file
For example, after downloading lxml‑3.5.0‑cp35‑none‑win_amd64.whl
since I have Python 3.5 on a 64-bit Windows box, I type in the following commands:
cd path/to/lxml_file
pip install lxml‑3.5.0‑cp35‑none‑win_amd64.whl
Then it should install fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With