Jump to content

Python Windows yfinance, lxml, libxml2 Install

Hi All,

I'm in need of some help, I installed the module yfinance with pip and was ready to start coding, then when I tried to run it, it asked me to install lxml. I tried installing lxml and it asked me to install libxml. I tried installing it and after about an hour and a half of searching, I realised that I needed to download libxml2-python3 even though it explicitly said libxml. Frustrating. I finally got to downloading libxml2-python3 and it hit me with yet another error it said:

Complete output from command python setup.py egg_info:
    failed to find headers for libxml2: update includes_dir

I've been advised to use sudo, but I'm on windows so it doesn't work. I've tried downloading a module that includes both libxml2 and libxslt but it hit me with another error. Could somebody please help me, I've been searching for hours and am unbelievably frustrated. If nobody can provide me with a fix for this, could I at least be offered a similar module?

Link to comment
Share on other sites

Link to post
Share on other sites

Windows "sudo" analogue is running cmd with administrative rights. Try that.

Purify your Windows 10/11, don't give Microsoft anything that you don't want to share.

https://drive.google.com/open?id=1ZwVs9zrM493rjD42E2Pf0YcOkaW92ZUo

Tips for folding on laptop:

Lazy man wants upgrades from the sky.

https://stats.foldingathome.org/donor/Spakes

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, willnburger said:

I am so confused. What are you talking about?

image.png.0693d694dc2270418f6f570afac2bd8d.png

Run with admin rights.

Or run python-executable with admin rights.

Purify your Windows 10/11, don't give Microsoft anything that you don't want to share.

https://drive.google.com/open?id=1ZwVs9zrM493rjD42E2Pf0YcOkaW92ZUo

Tips for folding on laptop:

Lazy man wants upgrades from the sky.

https://stats.foldingathome.org/donor/Spakes

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Spakes said:

image.png.0693d694dc2270418f6f570afac2bd8d.png

Run with admin rights.

Or run python-executable with admin rights.

It didn't work, it still says sudo is not executable, is there really no way to just download them with pip? How do I fix the stupid dir headings problem?

Link to comment
Share on other sites

Link to post
Share on other sites

You don't need to type "sudo" in cmd... This ain't a thing on Windows. Just execute same commands you tried to do, but with cmd launched with admin rights...

Purify your Windows 10/11, don't give Microsoft anything that you don't want to share.

https://drive.google.com/open?id=1ZwVs9zrM493rjD42E2Pf0YcOkaW92ZUo

Tips for folding on laptop:

Lazy man wants upgrades from the sky.

https://stats.foldingathome.org/donor/Spakes

Link to comment
Share on other sites

Link to post
Share on other sites

What were the exact command you ran installing the packages? Did you try "pip install lxml"?

 

[Edit] Anaconda should provide a very easy to set up Python environment under Windows. I've used it a lot and should have lxml by default: https://docs.continuum.io/anaconda/packages/pkg-docs/

Crystal: CPU: i7 7700K | Motherboard: Asus ROG Strix Z270F | RAM: GSkill 16 GB@3200MHz | GPU: Nvidia GTX 1080 Ti FE | Case: Corsair Crystal 570X (black) | PSU: EVGA Supernova G2 1000W | Monitor: Asus VG248QE 24"

Laptop: Dell XPS 13 9370 | CPU: i5 10510U | RAM: 16 GB

Server: CPU: i5 4690k | RAM: 16 GB | Case: Corsair Graphite 760T White | Storage: 19 TB

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, tikker said:

What were the exact command you ran installing the packages? Did you try "pip install lxml"?

 

[Edit] Anaconda should provide a very easy to set up Python environment under Windows. I've used it a lot and should have lxml by default: https://docs.continuum.io/anaconda/packages/pkg-docs/

Yep! just pip install ***

Link to comment
Share on other sites

Link to post
Share on other sites

developing python apps on windows is a pain in the ass. CMD is total shit and powershell is atrociously slow. How can you even run python apps with them? 

Just learn and develop on unix(including unix like such as BSD and Linux) and master the unix shell. 

Sudo make me a sandwich 

Link to comment
Share on other sites

Link to post
Share on other sites

4 hours ago, wasab said:

developing python apps on windows is a pain in the ass. CMD is total shit and powershell is atrociously slow. How can you even run python apps with them? 

Just learn and develop on unix(including unix like such as BSD and Linux) and master the unix shell. 

I would, but I don't only use my computer for coding and Windows is more convenient for almost every other task

Link to comment
Share on other sites

Link to post
Share on other sites

5 hours ago, willnburger said:

 Windows is more convenient for almost every other task

I profoundly disagree. 

Sudo make me a sandwich 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×