- Secret Recipes of the Python Ninja
- Cody Jackson
- 156字
- 2021-06-25 22:14:39
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.)
- Boost.Asio C++ Network Programming(Second Edition)
- Android Development with Kotlin
- 算法精粹:經典計算機科學問題的Java實現(xiàn)
- MongoDB for Java Developers
- Learning SQLite for iOS
- 從0到1:HTML+CSS快速上手
- Python金融數(shù)據(jù)分析
- Cocos2d-x學習筆記:完全掌握Lua API與游戲項目開發(fā) (未來書庫)
- RubyMotion iOS Develoment Essentials
- Laravel Application Development Blueprints
- 零基礎看圖學ScratchJr:少兒趣味編程(全彩大字版)
- C語言程序設計與應用實驗指導書(第2版)
- Mastering Bootstrap 4
- SQL Server 2014 Development Essentials
- Tkinter GUI Programming by Example