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

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.

主站蜘蛛池模板: 承德县| 嵊泗县| 措美县| 巴彦淖尔市| 永康市| 安阳县| 黄浦区| 成安县| 隆德县| 隆安县| 淮北市| 象山县| 凤山县| 巴塘县| 武城县| 河东区| 邹城市| 阜宁县| 惠水县| 宿松县| 湘乡市| 葫芦岛市| 中江县| 遂昌县| 思茅市| 隆尧县| 海伦市| 定襄县| 如皋市| 连城县| 隆子县| 乐清市| 舒城县| 湘阴县| 崇仁县| 巢湖市| 昆山市| 宿州市| 云和县| 汤原县| 平潭县|