Coder Social home page Coder Social logo

scikit installation error about super-ml-pets HOT 9 CLOSED

Gyrnw avatar Gyrnw commented on September 25, 2024
scikit installation error

from super-ml-pets.

Comments (9)

Gyrnw avatar Gyrnw commented on September 25, 2024 1

I looked in "Add or remove programs" and they were there, but not in the microsoft store library so they might not be for terminal . Ill delete the 3.9 ones and edit this comment on what happens.

from super-ml-pets.

andreped avatar andreped commented on September 25, 2024

Hello, @Gyrnw!

Your Python version is incompatible with super-ml-pets. Sadly, super-ml-pets depends on some older packages that cannot be upgraded, so we are unable to support newer versions of Python. However, Python 3.8-3.10 should work fine. Please install an older version and try again.

This fails because it tries to build some dependency from scratch, which only happens if there is no precompiled wheel for your Python version matching the library with version in question. By downgrading to a supported Python version, the wheel should install find, without needing to build it.

from super-ml-pets.

Gyrnw avatar Gyrnw commented on September 25, 2024

I switched to Python 3.10 but venv tries to access the nonexistent old 3.11 folder when trying to do the requirements.txt installation, how do I fix this ?

from super-ml-pets.

andreped avatar andreped commented on September 25, 2024

I switched to Python 3.10 but venv tries to access the nonexistent old 3.11 folder when trying to do the requirements.txt installation, how do I fix this ?

You will have to delete the old venv/ folder and run the venv installation again.

from super-ml-pets.

Gyrnw avatar Gyrnw commented on September 25, 2024

When I enter the virtual environment python doesn't seem to work anymore

Pre-venv check:
PS C:\Users\HP\super-ml-pets> python --version
Python 3.10.11

Post-venv check:
(venv) PS C:\Users\HP\super-ml-pets> python --version
Unable to create process using 'C:\Users\HP\AppData\Local\Programs\Python\Python39\python.exe --version'

Upon entering:
(venv) PS C:\Users\HP\super-ml-pets> pip install -r requirements.txt

This error is returned:
Unable to create process using 'C:\Users\HP\AppData\Local\Programs\Python\Python39\python.exe "C:\Users\HP\super-ml-pets\venv\Scripts\pip.exe" install -r requirements.txt'

I suspect it is trying to access the wrong one (shown in image 2), but according to my microsoft store library python 3.10 is the only one I have, i don't know if the other ones are from pycharm or anywhere else

image
image

from super-ml-pets.

andreped avatar andreped commented on September 25, 2024

Delete the Python version that does not work. You only need one. Then open a new terminal and run: py -V or python -V to see which version you have accessible.

Then delete the old virtual env and create a new one.

If you are paranoid like me, be sure to write py -m virtualenv and not just virtualenv, that should ensure that you map to the right Python version.

Alternative use venv which is much easier: py -m venv venv/


Also, it was a bit confusing. It looks like you have two Python versions, why are you unable to find/delete the other? Where did you look to find both.

from super-ml-pets.

andreped avatar andreped commented on September 25, 2024

I looked in "Add or remove programs" and they were there, but not in the microsoft store library so they might not be for terminal . Ill delete the 3.9 ones and edit this comment on what happens.

Yes, do that. Let me know if that resolves your issues.

If all else fails, I can recommend using Anaconda if you are having issues, just note that this is a separate instance of Python, but it comes with a lot of convenvience methods. Installing deps has to be done with conda and activating it is also different. I prefer pip and the standard python-way, but conda is quite popular as well. Just note that I have yet to test if conda is compatible with our current setup. For conda you also need the same python version that is compatible with the current setup, but it is easier to switch python versions.

from super-ml-pets.

Gyrnw avatar Gyrnw commented on September 25, 2024

It is now resolved, i also used python instead of py when installing virtualenv, I didn't realize the difference between them before, using py lead to the virtual environment being ran in the 3.9 launcher.

Thank you for being patient with me, I'm a total newbie at running things through terminal.

from super-ml-pets.

andreped avatar andreped commented on September 25, 2024

It is now resolved, i also used python instead of py when installing virtualenv, I didn't realize the difference between them before, using py lead to the virtual environment being ran in the 3.9 launcher.

Thank you for being patient with me, I'm a total newbie at running things through terminal.

Fantastic! No worries! I have been there myself once and see the value of getting constructive feedback and assistance.

Note that the bot currently is not compatible with the current state of the game. They have changed the pet and UI style too much. Perhaps I can fix this later today, such that you could play around with the bot tomorrow?

from super-ml-pets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.