Ask coding questions

← Back to all posts
How to install
CarterTimmons03

This is probably really simple, but how do I install something, such as
pip install getkey

Answered by VulcanWM [earned 5 cycles]
View Answer
Voters
CarterTimmons03
Comments
hotnewtop
VulcanWM

some packages are already installed like getkey
so in the Python code you just need to do import getkey
other packages which are not that popular, so you can either do the pip installing in the shell or do os.system(“pip install package_name”) in the Python code to install the package and import package_name to import it and use it kn your code

CarterTimmons03

@VulcanWM thanks so much :D

xfinnbar

@CarterTimmons03 @VulcanWM This isn't a good way to do this. Instead, use the packages menu on the sidebar or edit the pyproject.toml file.

VulcanWM