79454648

Date: 2025-02-20 13:25:49
Score: 1
Natty:
Report link

If any of the above solutions didn't solve the issue. You could try doing the following to help get rid of the error of being unable to install d2l package on Windows.

  1. Download the Python version >3.10 & < 3.11

  2. update the torch and torchvision versions to 2.3 and 0.18 with the command.

    pip install torch==2.3 torchvision==0.18

  3. Download the d2l-en package using the command.

    git clone https://github.com/d2l-ai/d2l-en.git cd ./d2l-en

  4. Upgrade the version of numpy from from 1.23.5 to 1.26.4 in the setup.py file

  5. Update the setup tools

    pip install -U setuptools

  6. Install wheel and bdist_wheel as version pip does auto download those packages

    pip install wheel python setup.py bdist_wheel

  7. Run the following commands to finally download the d2l package.

    python ./setup.py bdist_wheel pip install -U ./dist/d2l-1.0.3-py3-none-any.whl pip install d2l==1.0.3

These steps helped me get rid of the issue and it works like a charm.

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Nayan