#๐ why didnt pip install work
105 messages ยท Page 1 of 1 (latest)
@cyan oxide
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.
u mean interpeter?
like different enviorments
i switched to every single enviorment i have installed none have it
in vscode press ctrl + shift + P then look for Python: Select Interpreter and select the one in appdata
are you on windows?
yeah
type where python into the terminal
how would you run python files? python file.py or py file.py or what way do you run it
what do u mean
you have to type the full path of the interpreter
i js run ๐คทโโ๏ธ
alright
btw whats the difference between an enviorment and interpeter
copy it from the pip command
... installed in "path/to/python/interpreter"
so, the simplest explaination is that enviroment is local and interpreter is global
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
c:\users\laith\appdata\local\packages\pythonsoftwarefoundation.python.3.13_qbz5n2kfra8p0\localcache\local-packages\python313\site-packages
wait is this the path to my interpeter or to the module
i copied it fully
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?
i have multiple python interpeters installed
i use 3.12.4 usually
okay wait, instead of choosing a different interpreter lets just redirect pip into that interpreter
so
alright now how do i do that
alright got it
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
so the issue was i was just installing it in the wrong interpeter
yes
pip seems to be linked to this interpreter but I've never seen a path like this
could you show me the output?
both pip + the python running
sure
good :)
glad I helped
:D
remember, python -m pip uses the pip of that specific python
alr alr
good you helped C:
I bet there would be someone to help you if I weren't here, you can close the ticket with !close
what does the -m stand for
so it just installs the module in my current pip ( interpeter )
yes
wait pip is like the folder that has all my modules ๐ค
okay, so the -m pip just does the same thing as import pip but it runs it as a program
not really, pip is the installer that installes packages from pypi and puts them into python-path/libs
I believe
!pypi pip
no worries
im going to close the ticket to stop wasting space
I'll be here if anything's needed
see you later (hopefully not for an issue)
you're not wasting space, see you later
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