Installing a script...how | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Installing a script...how

I am using windows python 3.x through visual studio, and i want to make a window that allow user to pick from a list with arrowkeys and enter to make a selection. i found a script named "pick" that seem to do exactly that. However I cannot figure out how to install the script and use its commands! Extremely frustrating, I feel like an idiot. thanks for any help

25th Oct 2018, 1:34 AM
Per Sindre Larsen
Per Sindre Larsen - avatar
19 Answers
+ 1
Tried to execute it from command line?
25th Oct 2018, 7:01 AM
KrOW
KrOW - avatar
+ 1
Yeah..tried. To be honest I don't even fathom what I am trying to do. The way I intrrpret it, is that i am trying to "install" a module which allow me to envoke new calls or commands in a program which are not part of the python core code..things like gui etc. only instructions i see are "Indtallstion: pip install pick" and thats it
25th Oct 2018, 7:04 AM
Per Sindre Larsen
Per Sindre Larsen - avatar
+ 1
Per Sindre Larsen haaaaaaa, you talking about this module https://pypi.org/project/pick/ ??
25th Oct 2018, 7:07 AM
KrOW
KrOW - avatar
+ 1
Yessir!!
25th Oct 2018, 9:48 AM
Per Sindre Larsen
Per Sindre Larsen - avatar
+ 1
thanks will try tonight!
25th Oct 2018, 11:38 AM
Per Sindre Larsen
Per Sindre Larsen - avatar
+ 1
👍👍👍 Remember that this serve ONLY for install the pick package with pip (that its a package manager for python) ... I readed that you have to install also curses for windows from a determinate source but that will be do after solved problem with pip
25th Oct 2018, 11:42 AM
KrOW
KrOW - avatar
+ 1
Per Sindre Larsen You are welcome and remember that on SL you will find always an help on coding 😉
25th Oct 2018, 6:18 PM
KrOW
KrOW - avatar
+ 1
KrOW awesome!
25th Oct 2018, 6:20 PM
Per Sindre Larsen
Per Sindre Larsen - avatar
0
1 downvote no answers. cool
25th Oct 2018, 6:55 AM
Per Sindre Larsen
Per Sindre Larsen - avatar
0
Per Sindre Larsen Then you tried to run pip like described?
25th Oct 2018, 10:50 AM
KrOW
KrOW - avatar
0
I tried running it in my programs code, in visual studio's terminal, in cmd prompt. It doesn't seem to exist or do anything. I am on windows
25th Oct 2018, 10:52 AM
Per Sindre Larsen
Per Sindre Larsen - avatar
0
Per Sindre Larsen Which python version you have?
25th Oct 2018, 11:17 AM
KrOW
KrOW - avatar
0
3.x the most recent..not at home atm so cant check
25th Oct 2018, 11:21 AM
Per Sindre Larsen
Per Sindre Larsen - avatar
0
OK... You run it on windows?
25th Oct 2018, 11:24 AM
KrOW
KrOW - avatar
0
yeah, visual studio as editor on windows.
25th Oct 2018, 11:25 AM
Per Sindre Larsen
Per Sindre Larsen - avatar
0
If you have python 3 >= 3.4 you have yet pip installed... Then, when you would, check this... After make sure that your version is >= open a new cmd and write python -m pip install pick press enter and tell me what happens
25th Oct 2018, 11:31 AM
KrOW
KrOW - avatar
0
Hey. I understand now. I located my 3.7 python.exe and typed in "python.exe -m pip install pick" and it downloaded and installed it...like magic! :P How it "magically" knows what "pick" is from the internet - I have no idea. I downloaded "pick" and unzipped it to a folder, but that seems to never have been neccesary. I cannot find much documentation on how to use "pick" tho, but there are some sample-codes in the package so I will take a look at that and see if I can make use of it. Thanks alot! (Haven't tested that it works, but it seems to be installed now)
25th Oct 2018, 3:55 PM
Per Sindre Larsen
Per Sindre Larsen - avatar
0
Yes, it gives me the message you predicted now. "no module named: _curses"
25th Oct 2018, 3:58 PM
Per Sindre Larsen
Per Sindre Larsen - avatar
0
I downloaded _curses by: python.exe -m pip install curses-windows :) Brilliant!! Thanks alot :)
25th Oct 2018, 4:03 PM
Per Sindre Larsen
Per Sindre Larsen - avatar