Skip to content

Conversation

@arzoo7617
Copy link

@arzoo7617 arzoo7617 commented Nov 22, 2025

This PR fixes Issue #418 – Environment Setup Fails Due to Python 3.5 Deprecation and Outdated Dependencies.

What was wrong

The original environment.yml used Python 3.5, which is deprecated and not available on modern systems.

requirements.txt pinned very old versions of libraries (numpy 1.11, pandas 0.18, etc.) that are incompatible with current Python versions.

As a result, creating the environment caused installation errors and dependency conflicts.

What I changed

✅ Updated environment.yml to use Python 3.10
✅ Added pip explicitly and kept installation through -r requirements.txt
✅ Updated requirements.txt with modern, widely supported versions:

  • numpy>=1.21,<2.0
  • pandas>=1.3,<2.0
  • scipy>=1.7,<2.0
  • scikit-learn>=1.0,<2.0
  • scikit-image>=0.18
  • matplotlib>=3.4,<4.0

other libraries updated to stable, compatible versions

These versions work well with Python 3.10 and maintain compatibility with the notebooks.

How I tested

Created the environment using the updated files:

  • conda env create -f environment.yml
  • conda activate data-science-handbook

Launched Jupyter Notebook

Successfully ran all cells in:

  • 02.00-Introduction-to-NumPy.ipynb
  • 03.00-Introduction-to-Pandas.ipynb
  • 05.02-Introducing-Scikit-Learn.ipynb

Verified that imports work with the updated dependencies.

Notes:

I can pin versions more strictly or test additional notebooks if needed.
Thanks for reviewing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants