在jetson nano上安装python2.7的boto3

2024-05-14 06:01:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在jetson nano上安装boto3 for python 2.7。它目前安装在python3.6的站点包中,因此我可以将其导入python3。但是,我无法在python2.7中访问它。它说找不到模块

jetson@jetson-desktop:~$ pip install boto3
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: boto3 in ./.local/lib/python3.6/site-packages (1.17.43)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in ./.local/lib/python3.6/site-packages (from boto3) (0.10.0)
Requirement already satisfied: botocore<1.21.0,>=1.20.43 in ./.local/lib/python3.6/site-packages (from boto3) (1.20.43)
Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in ./.local/lib/python3.6/site-packages (from boto3) (0.3.6)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in ./.local/lib/python3.6/site-packages (from botocore<1.21.0,>=1.20.43->boto3) (1.26.4)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in ./.local/lib/python3.6/site-packages (from botocore<1.21.0,>=1.20.43->boto3) (2.8.1)
Requirement already satisfied: six>=1.5 in ./.local/lib/python3.6/site-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.21.0,>=1.20.43->boto3) (1.15.0)

我想让它为python2工作。我无法将安装指向python2


Tags: infromnanolibpackageslocalsiterequirement
1条回答
网友
1楼 · 发布于 2024-05-14 06:01:49

尝试使用以下工具安装:

  • $git clonehttps://github.com/boto/boto3.git
  • $cd boto3
  • $virtualenv-venv
  • 美元。venv/bin/激活
  • $python-m pip安装-r requirements.txt
  • $python-mpip安装-e
  • $python-m pip安装boto3

检查

https://github.com/boto/boto3

相关问题 更多 >