#๐Ÿ”’ my fucking python wont let me run pip, always gives errors about syntax

63 messages ยท Page 1 of 1 (latest)

stray trellis
#

help

placid oceanBOT
#

@stray trellis

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.

stray trellis
deep rapids
#

type exit()

#

you are in the python interpeter

#

pip is run from your shell

stray trellis
deep rapids
#

try python -m pip

stray trellis
deep rapids
#

did you even install python?

#

yes/no

gritty geyser
#

its not in PATH

deep rapids
#

how did you run it there

stray trellis
#

cuz i think thats it

deep rapids
stray trellis
#

added it and still dont work

gritty geyser
#

do it without python.exe

#

because the PATH shows only the way to get to the file

#

so that when u run python it will search in that folder

stray trellis
#

chganged it

#

changed it*

gritty geyser
#

now add pip to the path as well

stray trellis
#

wheres that

gritty geyser
#

no thats where the packages are stored i think

gritty geyser
gritty geyser
# stray trellis

so u need to add the folder C:\users....\Python311\Scripts to the path as well

stray trellis
gritty geyser
#

no in the same variable PATH

#

it can have multiple values

stray trellis
#

sooo the same name?

gritty geyser
#

seperated by semicolon

#

if u double click it

#

then u can add new values to the same variable

stray trellis
#

so like this?

gritty geyser
#

this is a colon :
this is a semicolon ;

stray trellis
#

oh i read colon

#

do i needa restart pc or sum

gritty geyser
#

no js open a new shell

#

should work

stray trellis
#

shell or cmd?

gritty geyser
#

same thing

stray trellis
#

bro now python wont run

potent saffron
#

what happens if you use py instead of python?

stray trellis
#

opens the interpreter

potent saffron
#

ok so from now on, if you read instructions that tell you run python, use py instead

stray trellis
#

i just fucking installed it

placid oceanBOT
#
Install packages with `python -m pip`

When trying to install a package via pip, it's recommended to invoke pip as a module: python -m pip install your_package.

Why would we use python -m pip instead of pip?
Invoking pip as a module ensures you know which pip you're using. This is helpful if you have multiple Python versions. You always know which Python version you're installing packages to.

Note
The exact python command you invoke can vary. It may be python3 or py, ensure it's correct for your system.

potent saffron
#

so instead of python -m pip, you run py -m pip

#

can't use pip directly

stray trellis
#

on administrator console too

#

wait its fixed

#

how do i close this ๐Ÿ’”

potent saffron
#

Type !close

stray trellis
#

!close

placid oceanBOT
#
Python help channel closed with !close

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.