Skip to content

Instantly share code, notes, and snippets.

@brainysmurf
Created December 24, 2019 11:46
Show Gist options
  • Save brainysmurf/6b8d5821ce2a0d1e1d0c7fc3e2393fc6 to your computer and use it in GitHub Desktop.
Save brainysmurf/6b8d5821ce2a0d1e1d0c7fc3e2393fc6 to your computer and use it in GitHub Desktop.
Installing package into IDLE
import subprocess
import sys
subprocess.check_call([sys.executable, "-m", "pip", "install", "arcade"])
# If you wish to reverse the install, uncomment the following line:
# subprocess.check_call([sys.executable, "-m", "pip", "uninstall", "--yes", "arcade"])
try:
import arcade
print("Arcade installed ๐Ÿ‘")
except ImportError:
print("Arcade NOT installed ๐Ÿ˜“")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment