Henrike-Schwenn / Predicting_bike_rental_demand

My first ai project as part of my take on the amazing online course "Introduction to Machine Learning for Coders" taught by Jeremy Howard. I will be contributing to the Kaggle competition "Bike Sharing Demand", aiming to predict bike rental demand depending on the weather.
3 stars 0 forks source link

Re-install scikit-learn and fastai #53

Closed Henrike-Schwenn closed 2 years ago

Henrike-Schwenn commented 2 years ago

Re-installing scikit-learn and fastai

PowerShell

  ERROR: Failed building wheel for scikit-learn
Failed to build scikit-learn
ERROR: Could not build wheels for scikit-learn, which is required to install pyproject.toml-based projects

Research error message

"scikit-learn python 3.10 windows" Installing scikit-learn

Installing the latest release

Operating System Windows macOS Linux Packager pip conda

Install the 64bit version of Python 3, for instance from https://www.python.org. Then run:

pip install -U scikit-learn In order to check your installation you can use

python -m pip show scikit-learn # to see which version and where scikit-learn is installed python -m pip freeze # to see all packages installed in the active virtualenv python -c "import sklearn; sklearn.show_versions()"

Note that in order to avoid potential conflicts with other packages it is strongly recommended to use a virtual environment (venv) or a conda environment.

Try latest version

pip install -U scikit-learn

distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

_Originally posted by @henrike-94 in https://github.com/henrike-94/Predicting_bike_rental_demand/issues/19#issuecomment-988033344_

Henrike-Schwenn commented 2 years ago

Support

Support scikit-learn

Henrike-Schwenn commented 2 years ago

To Do

Henrike-Schwenn commented 2 years ago

Setup a Python 3.10 venv and retry installation

How To Configure PyCharm venv

image

image

Cannot run program "C:\Users\henri\OneDrive\Dokumente\Berufseinstieg\Sprachtechnologie\Predicting_Bike_Rental_Demand\venv\Scripts\python.exe" (in directory "C:\Users\henri\OneDrive\Dokumente\Berufseinstieg\Sprachtechnologie\Predicting_Bike_Rental_Demand\venv\Scripts"): CreateProcess error=216, Die Version von %1 ist mit der ausgeführten Windows-Version nicht kompatibel. Überprüfen Sie die Systeminformationen des Computers, und wenden Sie sich anschließend an den Herausgeber der Software

Henrike-Schwenn commented 2 years ago

Install Microsoft Visual C++

image

Henrike-Schwenn commented 2 years ago

Retry installing fastai

grafik

Try installation in PowerShell

image

image

Henrike-Schwenn commented 2 years ago

Requirement: libxm12

libxml2 is a software library for parsing XML documents. It is also the basis for the libxslt library which processes XSLT-1.0 stylesheets.

Wikipedia

This feels like the start of another rabbit hole. :(

Try to get it

The XML C parser and toolkit of Gnome - Downloads

Distributions for Windows

image

Readme

libxml2 2.7.8

  This is libxml2, version 2.7.8, binary package for the native Win32/IA32
platform.

  The files in this package do not require any special installation
steps. Extract the contents of the archive whereever you wish and
make sure that your tools which use libxml2 can find it.

  For example, if you want to run the supplied utilities from the command
line, you can, if you wish, add the 'bin' subdirectory to the PATH
environment variable.
  If you want to make programmes in C which use libxml2, you'll
likely know how to use the contents of this package. If you don't, please
refer to your compiler's documentation.

  If there is something you cannot keep for yourself, such as a problem,
a cheer of joy, a comment or a suggestion, feel free to contact me using
the address below.

                              Igor Zlatkovic (igor@zlatkovic.com)

No effect on fastai, still can't find libxml2

Henrike-Schwenn commented 2 years ago

Add libxml2 to PATH environment variable

If this doesn't work, quit it and return to Python 3.8.

Add to the PATH on Windows 10

image

No effect on fastai, still can't find libxml2