- Hands-On Artificial Intelligence on Amazon Web Services
- Subhashini Tripuraneni Charles Song
- 213字
- 2021-06-24 12:48:45
Creating your first Python virtual environment
Now that we have installed the Python toolset, let's take it for a test drive by creating a Python project that can interact with the AWS cloud platform. First, let's create a directory for the project and name it ObjectDetectionDemo. Within this directory, we initialize a Python 3 virtual environment with pipenv, as follows:
$ mkdir ObjectDetectionDemo
$ cd ObjectDetectionDemo
$ pipenv --three
After these commands, the ObjectDetectionDemo directory will contain a Pipfile. The Pipfile is a pipenv configuration file that specifies this project's Python packages and their dependencies.
Next, we specify and install the AWS Python SDK, Boto, for the ObjectDetectionDemo project:
$ pipenv install boto3
It might take a few minutes for Pipenv to synchronize with the Python package index and to install the boto3 package, along with its dependencies. After the installation, your Pipefile should have the following contents:
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
"boto3" = "*"
[requires]
python_version = "3.7"
As you can see here, boto3 has an entry under the packages section. Currently, the version number is listed as *, which means, use the latest version. You can replace * with a specific version for any of the packages for your project if necessary.
- 零起步輕松學單片機技術(第2版)
- Word 2003、Excel 2003、PowerPoint 2003上機指導與練習
- 反饋系統:多學科視角(原書第2版)
- 樂高創意機器人教程(中級 下冊 10~16歲) (青少年iCAN+創新創意實踐指導叢書)
- 80x86/Pentium微型計算機原理及應用
- 永磁同步電動機變頻調速系統及其控制(第2版)
- 大數據平臺異常檢測分析系統的若干關鍵技術研究
- 傳感器與物聯網技術
- Splunk Operational Intelligence Cookbook
- The DevOps 2.1 Toolkit:Docker Swarm
- 智慧未來
- Flink內核原理與實現
- Mastercam X5應用技能基本功特訓
- 大話數據科學:大數據與機器學習實戰(基于R語言)
- Machine Learning with R Quick Start Guide