stefmolin / Hands-On-Data-Analysis-with-Pandas-2nd-edition

Materials for following along with Hands-On Data Analysis with Pandas – Second Edition
https://www.amazon.com/Hands-Data-Analysis-Pandas-visualization/dp/1800563450
MIT License
577 stars 1.38k forks source link

Help Aloushka with installation issue #40

Closed stefmolin closed 1 year ago

stefmolin commented 1 year ago

Migrating this from a comment on a commit to an issue.

Required attestation


Background information

1. Which OS are you using?

Windows

2. Which Python version are you using?

3.11

3. Are you using conda or venv?

venv


Commands run and their outputs

Please provide all of the commands you ran as well as the traceback:

``` TODO: paste commands and any traceback here ```

Screenshots

Optionally, include any screenshots that will help diagnose the issue. image


Hello Everyone, I am relatively new to coding , have some basic knowledge and I am trying to apply the knowledge in the book Hands on Data Analysis with Pandas.

I am having an absolute nightmare with setting up the virtual environment as per the instructions of the book. If i automatically load the libraries as per the requirements.txt text file, it comes back with errors. So i decided to manually load them up individually, one by one, bt the problem is some libraries versions are not accepted (old versions ???) , and i tried instead to use the latest ones. but still, when i run the file "checking up your set up,", i get a mish mash of results. ( see attached snapshot) Some load okay, some are failing because of the different versions used. Is it okay to use a different more updated version, or will that throw errors when the program is run. Any idea how to get the latest requirements text file?

In Summary, is there a better way to load these libraries without errors?

With Gratitude,

@Aloushka

stefmolin commented 1 year ago

@Aloushka - your Python version is too high (see the first failure in the screenshot). You are using 3.11, but only 3.7, 3.8, and 3.9 are supported. If you install different versions than what are in the requirements, you will have problems later.

Since you are new to Python, I would recommend you use the pre-built Binder environment so you don't have to worry about installation until you are more comfortable. Once you have some experience, you should try using conda as discussed in the book since that will also fix the Python version for you.

Aloushka commented 1 year ago

Hey Stef,

I just saw your reply. Thank you so much for getting back to me. I will go through all your response over the week-end and get back to you .

Apologies for posting at the wrong forum earlier. I am also new to Github and trying to find my way around it.

With lots of gratitude

Aloushka

Aloushka commented 1 year ago

Hey Stef..

Just wanted to say thank you so much for your help in providing a solution. I am using binder now, and it all works great

Again, my deepest gratitude

Aloushka