#๐Ÿ”’ Very stupid question...

17 messages ยท Page 1 of 1 (latest)

past meteor
#

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?

opaque stormBOT
#

@past meteor

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.

eager siren
#

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.

past meteor
#

oh ye I tried that as well

eager siren
#

But you're doing it at Python's >>> prompt, not your command prompt (CMD or PowerSHell).

past meteor
#

ooh ok I see

#

gotcha

#

thank you sorry for being stupid

eager siren
#

Easy and common mistake.. Don't worry about it.

past meteor
#

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

eager siren
past meteor
#

omg it was PyCharm, thanks for reminding me of the name!!

#

it didnt come up on any of my googling

opaque stormBOT
#
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.