官术网_书友最值得收藏!

There's more...

On a side note, the -m option indicates that Python is to run the module as a stand-alone script, that is, its contents will be ran within the __main__ namespace. Doing this means you don't have to know the full path to the module, as Python will look for the script in sys.path. In other words, for modules that you would normally import into another Python file can be run directly from the command line.

In the example of running pipenv, the command takes advantage of the fact that Python allows the -m option to run a module directly or allow it to be imported; in this case, pipenv imports venv to create the virtual environment as part of the creation process.

主站蜘蛛池模板: 沙田区| 鄂尔多斯市| 淅川县| 靖远县| 桑日县| 綦江县| 桓台县| 安国市| 江津市| 西贡区| 台中市| 东至县| 三亚市| 元谋县| 五原县| 罗田县| 红原县| 万全县| 阳城县| 社会| 阿克陶县| 沭阳县| 普宁市| 百色市| 攀枝花市| 阿克| 乌海市| 灵石县| 萨迦县| 青川县| 浦江县| 疏附县| 新源县| 嘉黎县| 金寨县| 宜川县| 丹江口市| 阳新县| 扬中市| 望谟县| 安顺市|