[AWS]AWS CLI S3無法上傳檔案
最近在下aws s3 cp
時,出現了一個錯誤:
aws s3 cp /myfolder/myfile.txt s3://mybucket/backups/
upload failed: ../../myfolder/myfile.txt to s3://mybucket/backups/myfile.txt seek() takes 2 positional arguments but 3 were given
這大多都是AWSCLI
跟Python
版本不匹配,利用Python
的pip
重新安裝一次就可以了。
這時候要先移除原本安裝的awscli
:
apt purge awscli
再使用pip
來安裝
pip install awscli