#๐Ÿ”’ ive tried everything

95 messages ยท Page 1 of 1 (latest)

gaunt nicheBOT
#

@quiet dew

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.

quiet dew
#

tried to do pip install pyqt6 and that happened

#

the 2nd image with the pop error with the unhandled exception in script didnt work for some reason

blissful minnow
#

you are using Python 3.13, the experimental threaded version

#

many, many things do not support that yet

#

I strongly recommend removing it and downgrading to Python 3.12 and trying that instead

quiet dew
#

@blissful minnow

#

so u want me to downgrade correct? i would just go to the website

#

and would i have to add a whole new path and everything like that yes or no

blissful minnow
#

uninstall your current Python, install Python 3.12, and reinstall your project's requirements with it

#

better yet, use a venv for your project so you don't pollute the core installation with the reqs

quiet dew
#

what would the requirements be ? things like pip install requests

blissful minnow
#

whatever your project uses that isn't included with Python. it's wise to track those things.

blissful minnow
#

a virtual environment lets you keep a project's installed libraries separate from other projects and from the Python installation itself.

blissful minnow
quiet dew
#

because i dont feel like doing all of that like i know i would have to do stuff but i dont care i will reinstall everything i just dont wanna do a VM

blissful minnow
quiet dew
#

@blissful minnow

#

it just keeps getting stuck at that and when it doesnt it gives me the error i originally sent at the top of the chat

blissful minnow
#

in the command line, type py -0p
what does that give you? paste that here

quiet dew
blissful minnow
#

you are still using Python 3.13

quiet dew
#

ok

#

can u walk me throuhg how to uninstall it please just do i dont mess anything up

blissful minnow
#

you'd remove it the same way you remove any other Windows program, through the Add/Remove Programs

#

and you'd reboot after removing it, just to be sure

quiet dew
#

ok, im uninstalling right now

#

@blissful minnow just finished uninstalling

blissful minnow
#

ok, reboot

quiet dew
#

yes i did

blissful minnow
#

then install 3.12

quiet dew
#

ok

#

from the website right

#

just look for 3.12

blissful minnow
#

correct

quiet dew
#

ok

#

whic hone

blissful minnow
#

Windows Installer, 64-bit is typically what you want

#

3.12.8

quiet dew
#

ok

blissful minnow
#

good

#

again, I'd recommend learning a little about virtual environments, as they are very helpful when working with PyInstaller

quiet dew
#

will keep in mind

#

so, now i have my code

blissful minnow
quiet dew
#

now what do i do

blissful minnow
#

you'd set up the requirements for it

#

and again, I strongly recommend not doing that in the base Python installation

quiet dew
#

wdym not in the base python installation

#

the thing is, when i converted things to exe before using pythin it worked

#

but now it just gives errors

#

i had one using pyqt6 and it still works aswell i just dont know what the issue is now

blissful minnow
#

that's because you had an incompatible version of Python installed

quiet dew
#

thats why it worked or didnt work ?

#

didnt right, because 3.13 is incompatible with a lot

blissful minnow
#

you were using Python 3.13

#

and what's more you were using the experimental multithreaded version which is super duper not compatible with a lot

quiet dew
#

mmmm ok

#

but this version should be better ?

#

so now do i pip install pyqt6

blissful minnow
#

3.12 should be more compatible

quiet dew
#

in the terminal or cd

#

ok

blissful minnow
#

again: before you rush into this stuff, learn about virtual environments and how they can in the long run save you tons of hassle

quiet dew
#

of course

blissful minnow
#

when you use pip to install something the default location for it is the base Python installation you set up in your system

quiet dew
#

right

blissful minnow
#

this is useful for a few things, but generally, you want to set up a virtual environment for each project you work on - this lets you pip install things to that project only

#

what's more, if you make a mistake and install the wrong thing, you can clean that up a whole lot more easily

#

and you can use tools like PyInstaller a lot more reliably and controllably

quiet dew
#

ok

#

thank u for that information

#

ill probably end up using it in the future

#

the VEs

blissful minnow
#

every single project I spin up, even simple ones, gets a venv

#

all the major Python editors support them in some form

quiet dew
#

@blissful minnow

#

thank u so much redoing python helped me out

#

and downgrading to the 3.12 version

#

now my script does work thanks to u

#

can finally run it

blissful minnow
#

good

gaunt nicheBOT
#
Python help channel closed for inactivity

This help channel has been closed. 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.