Closed Gyrnw closed 10 months ago
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.
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 ?
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.
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
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.
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.
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.
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.
It is now resolved, i also used
python
instead ofpy
when installing virtualenv, I didn't realize the difference between them before, usingpy
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?
Describe the bug scikit fails to install while installing requirements.txt
To Reproduce Collecting scikit-learn<=1.1 (from -r requirements.txt (line 10)) Using cached scikit-learn-1.1.0.tar.gz (6.8 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
Screenshots Downloaded the build tools from the Microsoft C++ Build Tools link provided in the error message, but produced the same error upon retrying installation
Desktop (please complete the following information):