- 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.
- AutoCAD繪圖實用速查通典
- 我的J2EE成功之路
- 精通MATLAB神經(jīng)網(wǎng)絡
- 基于LabWindows/CVI的虛擬儀器設計與應用
- Hands-On Neural Networks with Keras
- 工業(yè)機器人工程應用虛擬仿真教程:MotoSim EG-VRC
- 21天學通Java
- Pig Design Patterns
- Windows游戲程序設計基礎
- 自動化生產(chǎn)線安裝與調(diào)試(三菱FX系列)(第二版)
- 生物3D打?。簭尼t(yī)療輔具制造到細胞打印
- Windows 7來了
- 智能小車機器人制作大全(第2版)
- Java Deep Learning Projects
- 實戰(zhàn)大數(shù)據(jù)(Hadoop+Spark+Flink):從平臺構(gòu)建到交互式數(shù)據(jù)分析(離線/實時)