I used python ages ago and most of it escaped me but I have a real life maths problem that I thought I could use it for, so reinstalled. Having big issues trying to work out how to install arrays (math and numpy) and I keep getting syntax errors that I dont understand. Ive checked the documentation and AI help and I cant work out whats going on. I know previously I used some other programme or GUI or something, maybe it that?
#๐ Very stupid question...
17 messages ยท Page 1 of 1 (latest)
@past meteor
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.
Closes after a period of inactivity, or when you send !close.
Your import numpy error means numpy is not yet installed.
Your pip install numpy error is because that is a command you type at the command prompt, not at the Python >>> prompt.
Usually we go:
py -m pip install numpy
which installs numpy in the Python which the py command runs - this it to ensure the install happens to the same Python which you will be using to run your Python scripts.
But you're doing it at Python's >>> prompt, not your command prompt (CMD or PowerSHell).
Easy and common mistake.. Don't worry about it.
also, but of a random question - any idea what kind of python programme/UI I would have been using last time? (3/4 years ago maybe) it looked a lot nicer than this ๐
idk if there are ones that are particularly common or useful
VSCode seems popular, as is PyCharm. I hear Spyder is good.
I just use two terminals, one running an editor on the code, and the other to run the script/modules and/or other commands.
omg it was PyCharm, thanks for reminding me of the name!!
it didnt come up on any of my googling
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.