#๐Ÿ”’ why didnt pip install work

105 messages ยท Page 1 of 1 (latest)

cyan oxide
glacial swiftBOT
#

@cyan oxide

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.

haughty nimbus
#

you're using 2 different pythons

#

1 has pyautogui
and the second doesn't

cyan oxide
haughty nimbus
#

yes

#

my bad

cyan oxide
#

like different enviorments

cyan oxide
haughty nimbus
#

in vscode press ctrl + shift + P then look for Python: Select Interpreter and select the one in appdata

cyan oxide
#

none in appdata

#

do i have to write the full path?

#

to the interpeter

haughty nimbus
#

are you on windows?

cyan oxide
#

yeah

haughty nimbus
#

type where python into the terminal

cyan oxide
haughty nimbus
#

how would you run python files? python file.py or py file.py or what way do you run it

haughty nimbus
#

so yes

haughty nimbus
#

you have to type the full path of the interpreter

cyan oxide
#

i js run ๐Ÿคทโ€โ™‚๏ธ

cyan oxide
#

btw whats the difference between an enviorment and interpeter

haughty nimbus
#

copy it from the pip command
... installed in "path/to/python/interpreter"

haughty nimbus
#

you create local enviroments, install packages in there and if some are incompatible / you want a different version you install a different version
you can create multiple enviroments for multiple projects

cyan oxide
#

i copied it fully

haughty nimbus
#

c:\users\laith\appdata\local\packages\pythonsoftwarefoundation.python.3.13_qbz5n2kfra8p0\localcache\local-packages\python313\python.exe
should be the path to your 3.13 python, type that into the select interpreter

#

althrough im not really sure if this is your global python

#

where did you install the python?

cyan oxide
cyan oxide
#

i use 3.12.4 usually

haughty nimbus
#

okay wait, instead of choosing a different interpreter lets just redirect pip into that interpreter

#

so

cyan oxide
#

my currenct one?

#

you mean?

haughty nimbus
#

yes

#

your current one

#

the anaconda3 something

cyan oxide
#

alright now how do i do that

cyan oxide
haughty nimbus
#

let me look at the video again, I need to copy the path

#

C:/Users/laith/anaconda3/python -m pip

#

this is your pip

#

C:/Users/laith/anaconda3/python -m pip install pyautogui

#

try it tell me what it tells you

cyan oxide
#

its installing

haughty nimbus
#

is it giving some errors?

#

oh

cyan oxide
#

so the issue was i was just installing it in the wrong interpeter

haughty nimbus
#

yes

cyan oxide
#

nvm

#

didnt work

haughty nimbus
haughty nimbus
#

both pip + the python running

cyan oxide
#

wait

#

nevemind

haughty nimbus
#

sure

cyan oxide
#

neever mind

#

it worked

#

:D

haughty nimbus
#

good :)

cyan oxide
#

Thank you so much

#

i have been doing this for way too long

haughty nimbus
#

glad I helped

cyan oxide
#

:D

haughty nimbus
#

remember, python -m pip uses the pip of that specific python

haughty nimbus
#

:D

cyan oxide
haughty nimbus
#

I bet there would be someone to help you if I weren't here, you can close the ticket with !close

cyan oxide
haughty nimbus
#

modules

#

I believe

#

let me look it up

cyan oxide
#

so it just installs the module in my current pip ( interpeter )

haughty nimbus
#

yes

cyan oxide
#

wait pip is like the folder that has all my modules ๐Ÿค”

haughty nimbus
#

okay, so the -m pip just does the same thing as import pip but it runs it as a program

cyan oxide
#

yeah but whats pip

#

like what does it mean/standfor

haughty nimbus
#

I believe

#

!pypi pip

glacial swiftBOT
#

The PyPA recommended tool for installing Python packages.

Released on <t:1753912215:D>.

cyan oxide
#

oh alr alr

#

ig thats all thank you for everything โค๏ธ

haughty nimbus
#

no worries

cyan oxide
#

im going to close the ticket to stop wasting space

haughty nimbus
#

I'll be here if anything's needed

cyan oxide
#

see you later (hopefully not for an issue)

haughty nimbus
#

you're not wasting space, see you later

cyan oxide
#

โค๏ธ

#

!close

glacial swiftBOT
#
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.

#

๐Ÿ”’ why didnt pip install work