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

How it works...

The preceding pipenv example shows the developer changing to the desired directory for the project, and then invoking pipenv to simultaneously create the virtual environment, activate it, and install the desired module.

In addition to creating the virtual environment, once you have created your Python program, you can run the program using pipenv as well:

>>> pipenv run python3 <program_name>.py

Doing this ensures all installed packages in the virtual environment are available to your program, thus reducing the likelihood of unexpected errors.

When launching a pipenv shell, a new virtual environment is created, with indications of where the environment is created in the file system. In this case, two environment executables are created, referencing both the Python 3.6 command and the default Python command. (Depending on the systems, these may actually reference different versions of Python. For example, the default Python command may call the Python 2.7 environment instead of Python 3.6.)

主站蜘蛛池模板: 定西市| 龙川县| 万载县| 从化市| 奉化市| 依兰县| 兰州市| 县级市| 无为县| 武威市| 镇赉县| 观塘区| 通许县| 靖远县| 游戏| 上栗县| 弥勒县| 繁峙县| 丰城市| 丰原市| 新干县| 靖远县| 静海县| 营口市| 石棉县| 贵南县| 乌拉特后旗| 贡觉县| 五寨县| 宁城县| 比如县| 雷山县| 汶川县| 衡东县| 营山县| 双柏县| 东山县| 遵化市| 东港市| 报价| 米林县|