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

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.

主站蜘蛛池模板: 克拉玛依市| 凤庆县| 万源市| 望城县| 普兰店市| 永州市| 通城县| 彩票| 铁岭县| 疏勒县| 万宁市| 永春县| 嫩江县| 霍州市| 昭觉县| 临朐县| 萨嘎县| 兰西县| 五莲县| 邯郸市| 天津市| 始兴县| 吴旗县| 宝鸡市| 手游| 囊谦县| 松原市| 同江市| 香河县| 清水河县| 衢州市| 淳安县| 长岭县| 苏尼特右旗| 保康县| 淮阳县| 闽侯县| 阿巴嘎旗| 洞口县| 灵丘县| 乐山市|