#๐ PIP INSTALLATION
264 messages ยท Page 1 of 1 (latest)
@lilac magnet
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.
did you try the pip command?
how are you running the python file?
in VSS
vss?
sorry VSC
you need to check what interpreter it is using
hit ctrl+shift+p and type interpreter
should be something like select interpreter
just check what the python version is labelled as
okay just a sec
this might help?
i also deleted python 3.10 to put 3.13 (new version) and idk really anymore
type py -0 in terminal
deleted or uninstalled ๐ค
i still think you have two version installed
you need to make sure that pip installs to the correct interpreter. The one you are using to run your code
uninstalled
do py -m pip install ...
i clicked on py -0 and gent venv and conda
send a screenshot
this should be in my folder where my main.py is?
it doesn't matter. Any terminal
also i already have venv file in my folder
no, these are terminal commands now
-V:3.13 * Python 3.13 (64-bit)
thank god
then activate the venv in terminal
then execute pip command
ctrl shift p and type interpreter and send screenshot
can you might be able to help me with this? first time doing it
yep just do this first
here ๐
Are you sure you have a venv
is that in your project folder
yes
select the second option "enter interpreter path"
then you need to go to the venv folder and look for python.exe
...venv/scripts/python.exe
basically before ... i should put my file location?
and then just select venv file right?
got it?
yes i found python.exe
did you select it
yes
okay thats fine
okay im in venv folder
go into venv folder. Into Lib > site packages
what's in there?
send screenie
okay intersting
the library is in there
instagrapi or whatever
yes
the plot thickens
delete the two instagrapi folders from there
and pip install it again
these?
yes
and make sure use python from ... is selected
and if still nothing then we will try to activate the venv and installing again
py -m pip install ...
and pip install ...
try both of these
okay so firstly use python from and then pip install instagrapi?
yes
it's perfectly fine to run pip install in site-packages folder?
that menu only selects which interpreter vsc uses to run the code, and not actually which interpreter installed libraries are sent to
yes
it doesn't matter where pip commands are run from
because every pip always installs to its own libraries stash
that's why you have to use the correct pip
which is the problem here I assume
we have to activate the venv's pip, and not use the global interpreter one
run the code
CRITICAL ERROR: 'instagrapi' library not found. The core functionality will not work.
Please install it: pip install instagrapi
๐ฆ
in cmd?
yes
Click here to see this code in our pastebin.
uh
you are my last hope ๐
you just typed pip
pip -V
capital v
okay okay okay
do this
go to the folder where your venv is
go to scripts folder
venv/scripts
right click and hit "open in terminal"
just right click on scripts folder and open in terminal?
okay did it
now run the file called activate.bat
should just be able to type activate.bat and hit enter
activate.bat : The term 'activate.bat' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
- activate.bat
-
+ CategoryInfo : ObjectNotFound: (activate.bat:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Suggestion [3,General]: The command activate.bat was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\activate.bat". See "get-help about_Command_Precedence" for more details.
okay now
put PS before
fine
what now
lets just try and run the code
from terminal
type cd ..
and cd .. again
then py your_app_name.py
send screenshot
oh i meant literally type ..
aw shit
oh okay that works too
no thats fine
now this
CRITICAL ERROR: PySide6 library not found. Please install it (e.g., pip install PySide6).
always something
actually go back to the scripts folder
cd venv/Scripts
& '.\activate' and type this
it should come up with (venv) on the very left
i think the bat doesn't work for this. Theres a few activate scripts in there. I think you just have to use the normal one
ughh can't get venv
hm?
i went to script file open in terminal
copied cd venv/Scripts
and i get erros
errors
no
type this exactly
& '.\activate'
Activate.ps1 cannot be loaded because running scripts is disabled on this system
okay one more command
just 1 sec
no worries take your time
you need to open another terminal window
but you need to do it as administrator
see in bottom right run as admin
then enter Set-ExecutionPolicy RemoteSigned
then you need to close both terminal windows. And go back to the scripts folder and try that again
doesnt need to be in any file to put Set-ExecutionPolicy RemoteSigned ?
anywhere
'Set-ExecutionPolicy' is not recognized as an internal or external command,
operable program or batch file.
okay i did it
^
i can close cmd in scripts file?
oh okay my bad
so basically i can just do this?
yes
but you have to make sure you're in the correct folder
you can't do that command from scripts folder
okay got it so basically where my code is
yes
CRITICAL ERROR: 'instagrapi' library not found. The core functionality will not work.
Please install it: pip install instagrapi
still
hm
simply dont get it really...
actually try pip install it now that venv is activated
pip instal insta...?
yes
CRITICAL ERROR: 'instagrapi' library not found. The core functionality will not work.
Please install it: pip install instagrapi
and the venv is activated?
okay
lets do something
go back to scripts folder
i think it should be python.exe
and then you have to add the path to your py file
so for example
.\python.exe ..\..\my_file.py
type the .. literally
.. just means "go back a folder"
still need to be in venv?
it doesnt matter
CRITICAL ERROR: 'instagrapi' library not found. The core functionality will not work.
Please install it: pip install instagrapi
.\python.exe ....\main_gui.py
this what i put it
can you send screenshot of the terminal
.... isn't a thing. Only .. which means "go back 1 folder"
okay i'm confused and out of ideas
instagram botting is against the rules by the way ,,,
and 0 idea of what should i do
i know
but it's not for botting
it's my project work for school
@odd tapir any ideas?
can anyone help me pls???
Well...
Read basically the whole convo to this...
it's just a school project the program doesnt even work
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.