#๐ ive tried everything
95 messages ยท Page 1 of 1 (latest)
@quiet dew
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.
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
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
@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
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
what would the requirements be ? things like pip install requests
man im slow what did u just say
whatever your project uses that isn't included with Python. it's wise to track those things.
im just using python
a virtual environment lets you keep a project's installed libraries separate from other projects and from the Python installation itself.
PyQT6 is not included with Python, you install it separately. Those are the things I mean
oh no, is their a way to not do a VM
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
a virtual environment in Python is not a virtual machine
im not using a lot i will just pip install all of em back
@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
in the command line, type py -0p
what does that give you? paste that here
you are still using Python 3.13
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
ok, reboot
yes i did
then install 3.12
correct
good
again, I'd recommend learning a little about virtual environments, as they are very helpful when working with PyInstaller
ok
will keep in mind
so, now i have my code
now what do i do
you'd set up the requirements for it
and again, I strongly recommend not doing that in the base Python installation
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
that's because you had an incompatible version of Python installed
thats why it worked or didnt work ?
didnt right, because 3.13 is incompatible with a lot
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
3.12 should be more compatible
again: before you rush into this stuff, learn about virtual environments and how they can in the long run save you tons of hassle
of course
when you use pip to install something the default location for it is the base Python installation you set up in your system
right
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
ok
thank u for that information
ill probably end up using it in the future
the VEs
every single project I spin up, even simple ones, gets a venv
all the major Python editors support them in some form
@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
good
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.