Created
December 24, 2019 11:46
-
-
Save brainysmurf/6b8d5821ce2a0d1e1d0c7fc3e2393fc6 to your computer and use it in GitHub Desktop.
Installing package into IDLE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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