#๐Ÿ”’ i have bug won't let me install baseline3

49 messages ยท Page 1 of 1 (latest)

heavy ravenBOT
#

@fleet girder

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

dry totem
#

!paste please use this

heavy ravenBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

dry totem
#

it won't let you attach files directly

fleet girder
#

found it

#

i just want make ai play mega man works

#

i actually got screen capture

#

it working it see what im playing

dry totem
#

it's trying to build Numpy... I think it might be because they don't yet provide prebuilt Numpy for 3.13

#

can you try with 3.12?

fleet girder
#

sure

#

how i install

neon hornet
#

numpy not being available for 3.13 would be odd. The issue is likely that the package you try to install contrains numpy to a version lower than 2.0

fleet girder
#

so im stuck

#

great i just wanna make ai that can play games

neon hornet
#

stable-baselines3 using upper bound constraints is generally considered a bad habit... it usually means "I made this, but don't want to maintain it"
You can probably get it to work, if you figure out what python version it was originally made for

fleet girder
#

it was latest version when i downloaded

neon hornet
fleet girder
#

but why it didn't work

neon hornet
#

why did what not work?

fleet girder
#

it didn't install correctly

neon hornet
#

the stable-baselines3 version requires a numpy version below 2.0 ... but numpy 1.x is not compatible/pre-built for python 3.13 ... so you'd have to compile it yourself - but doing that is a huge pain on windows - so no one really does it.

fleet girder
#

oh ok

neon hornet
#

they got a pre release version... you can try:
pip install --pre stable-baselines3

#

maybe that one actually works, but there is no guarantee

#

the easiest way to make it work is probably to install an older python version

fleet girder
#

i got raspberry i could use it

neon hornet
#

oh

#

so you're not on windows?

#

no you are

fleet girder
#

well im on window but i got pi 4 maybe i could use it

neon hornet
#

that's probably not much better, as rpi is usually some ARM architecture... and you typically never find pre-built binaries for those on pypi

#

well something popular like numpy might be an exception

fleet girder
#

why deep learn ai so much complicated

neon hornet
#

you can install uv and use that to manage your python versions and dependencies.

fleet girder
#

ok

neon hornet
#

(I recommend the powershell installation method for windows, don't use pip)

fleet girder
#

ok it installed

neon hornet
#

then navigate in powershell into a new project directory, and do something like:

uv python pin 3.11
uv init --package --name myproject
uv add stable-baselines3
uv sync
#

not sure entirely what fits best your scenario

fleet girder
#

yeah i'm going try swich to pi 4 see if that help im not looking for advance i just want something that work

neon hornet
#

you have to consider that AI typically requires quite heavy GPUs to do anything reasonable good. an rpi will never be able to do that

fleet girder
#

oh no no it not heavy it an old game mega man

#

it will easily play well like that

heavy ravenBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

๐Ÿ”’ i have bug won't let me install baseline3