When I work on a Python Virtual Environment ( $ python -m venv myenv
), I couldn't find the os
module in it.
I tried $ pip install os
, but couldn't find the package there as well. How do I go about installing modules from the standard library?
Thanks for the help.
OS module is usually included in the standard Python installation and you can't really install it with pip.
Are you able to import the module? If not, it sounds like your Python installation is broken. The standard library has its name because it is always included in a vanilla Python installation.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.