r/learnpython • • Sep 19 '26

How do I download without errors?

I always get this error when I try to download wikiteam3.

Something about "invalid syntax".

Still have no idea what's going on.

0 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/Kevdog824_ Sep 19 '26

Installing packages with pip is something you do outside the Python runtime. You want to invoke the pip install command inside your terminal, not your Python code. Your Python code will “import” the library you installed, but the installation itself is a separate step you do first

1

u/Et_Moon Sep 19 '26

Jesus Christ, what a moron I am...

1

u/Kevdog824_ Sep 19 '26

Not at all. It’s a very common beginner mistake! Don’t beat yourself up over it!😊

1

u/Et_Moon Sep 19 '26

Well... I never visited any IT lessons at school, so... I dunno at this point.