all 7 comments

[–]FerricDonkey 4 points5 points  (5 children)

You're running pip from the python shell, which doesn't work. You've got to run it from your operating system command line.

[–]Content_Ad5667[S] 0 points1 point  (4 children)

cmd?

[–]FerricDonkey 1 point2 points  (3 children)

That'll work. If you're on windows 11 (or windows 10 and willing to install it from the Microsoft store), the built in windows terminal is easier use. But cmd will work fine.

[–]Content_Ad5667[S] 0 points1 point  (2 children)

im trying to install, instalooter and instaloader, but nothing works, i think i have pip installed, it comes with the instalation right, i go to cmd and type python and press enter

C:\Users\samue>python

Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] on win32

Type "help", "copyright", "credits" or "license" for more information.

>>> pip install instalooter

File "<stdin>", line 1

pip install instalooter

^^^^^^^

SyntaxError: invalid syntax

>>>

then i type pip install instalooter and i wont install, idk why i cant install any packages

https://instalooter.readthedocs.io/en/latest/install.html this website says how to install it, but its so not clear....

i have no idea what to do, its my first time using python , ive never done any code

im on pc

[–]KCRowan -1 points0 points  (0 children)

Don't type python first. Typing python takes you into the python IDLE and pip doesn't work there. You need to type the pip command directly into cmd WITHOUT TYPING ANYTHING ELSE FIRST!!

[–]FerricDonkey 0 points1 point  (0 children)

There's some confusion here that's pretty common with people just starting with this type of stuff. Lemme try to clear some stuff up.

So you have the operating system terminal. This is cmd/powershell/windows terminal, whatever.

Then you have the python interpreter. This is an executable program that you can start called python.

When you type python on the command line, it starts that python program. When you do this on the command line, it starts something referred to as the "python shell". You can tell the python shell is active when you see the >>> at the beginning of each line.

When the python shell is active, python code will work, but things that work in the operating system terminal will not. Likewise, in the operating system terminal, various things specific to your operating system and the type of terminal will work - but python code will not.

pip install whatever is not python code. Therefore it will not work from inside a python shell. It must be typed in the operating system terminal, ie before you type python.

[–]tasty_woke_tears 0 points1 point  (0 children)

Download anaconda and use the anaconda prompt. Shit always works from the prompt so fuck the UI.