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

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.

主站蜘蛛池模板: 米脂县| 从化市| 五指山市| 连城县| 门源| 木兰县| 枣庄市| 于都县| 凤冈县| 平南县| 江川县| 泊头市| 武邑县| 乳源| 大丰市| 保康县| 剑阁县| 益阳市| 绵阳市| 温泉县| 宜宾县| 深泽县| 离岛区| 吉水县| 宁晋县| 华宁县| 专栏| 阆中市| 星子县| 丽江市| 开原市| 方城县| 河间市| 昌乐县| 广南县| 房山区| 邮箱| 三亚市| 区。| 黑河市| 汝南县|