#๐ my fucking python wont let me run pip, always gives errors about syntax
63 messages ยท Page 1 of 1 (latest)
@stray trellis
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.
try python -m pip
its not in PATH
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
now add pip to the path as well
no thats where the packages are stored i think
maybe in python311\scripts
so u need to add the folder C:\users....\Python311\Scripts to the path as well
sooo the same name?
seperated by semicolon
if u double click it
then u can add new values to the same variable
so like this?
this is a colon :
this is a semicolon ;
shell or cmd?
same thing
what happens if you use py instead of python?
opens the interpreter
ok so from now on, if you read instructions that tell you run python, use py instead
i just fucking installed it
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.
Type !close
!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.