'How to install module from code python3.7.1
I am trying to install modules with python
This is what I have tried:
def install(package):
os.system("python -m pip install " + package)
install("winsound")
But I got an error:
ERROR: Could not find a version that satisfies the requirement winsound(from versions: none)
Solution 1:[1]
The error is raised as you are trying to install modules from Standard Python Library.
You can read more about them from here: https://docs.python.org/3/library/
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Vedant Pople |
