1
I have installed s3cmd
with pip
on MacOS High Sierra, which has successfully installed.
sudo pip install --user s3cmd
The directory '/Users/crmpicco/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/crmpicco/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting s3cmd
Downloading https://files.pythonhosted.org/packages/c0/55/ff0ba1d725d3b43c1b116907b4891da0a3b3193e7fa23f75d9fff7a6431e/s3cmd-2.0.1.tar.gz (121kB)
100% |████████████████████████████████| 122kB 85kB/s
Requirement already satisfied: python-dateutil in /Library/Python/2.7/site-packages (from s3cmd) (2.6.1)
Requirement already satisfied: python-magic in /Library/Python/2.7/site-packages (from s3cmd) (0.4.15)
Requirement already satisfied: six>=1.5 in /Library/Python/2.7/site-packages (from python-dateutil->s3cmd) (1.11.0)
Installing collected packages: s3cmd
Running setup.py install for s3cmd ... done
Successfully installed s3cmd-2.0.1
However, I am unable to run it.
s3cmd --configure
-bash: s3cmd: command not found
If I do a search for it, it is showing in the /Homebrew
directory:
locate s3cmd
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/s3cmd.rb
What am I missing to run this?
This is great, thanks. I'm all good up until number 4. I already have a
PATH
environment variable set like thisexport PATH="/usr/local/sbin:$PATH"
. How should I add the full Python bin path to the existingPATH
variable as I don't want to clobber the existing variable? – crmpicco – 2018-05-24T01:42:01.4731You won't clobber it if you add the lines from the answer.
/usr/local/sbin
will still be inPATH
, you can check that anytime: enterecho $PATH
in terminal to print the variable. You can of course combine two lines into oneexport PATH="/python/bin:/usr/local/sbin:${PATH}"
, but it will have the same effect in the end. – hoefling – 2018-05-24T08:05:42.6101Great, thanks for your help @hoefling. You answer was well explained. I ended up adding
/Users/crmpicco/Library/Python/2.7/bin
to/etc/paths
. – crmpicco – 2018-05-30T06:45:57.813