<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
For aws-cli, I use the current code and this is how you install it,
setup.py.<br>
<br>
Again, when I use the system MacOS python, it does the right thing;
when I use Macports python3, it ends up installing under a large
tree under /opt, which is not the correct behavior. So until I
figure out the Macports version, I have been using the system
python.<br>
<br>
How would the virtual environment benefit me here? It's just an
AWS interface command, written in python.<br>
<br>
<br>
_F<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 12/2/19 1:56 PM, Ruben Di Battista
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CACnYWRdrgjYwq=XWP-hhPaj1PAnDhrMBw-M9s+ewxpfq6uUF9g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">Wait wait wait wait...
<div dir="auto"><br>
</div>
<div dir="auto">Why are you doing the `python setup.py` thing? I
strongly discourage you to use the system python to install
packages globally. </div>
<div dir="auto"><br>
</div>
<div dir="auto">What I suggest you is to use virtualenvs.</div>
<div dir="auto"><br>
</div>
<div dir="auto">* Install py-virtualenv</div>
<div dir="auto">* Create virtualenv </div>
<div dir="auto">* Activate the virtual environment </div>
<div dir="auto">* Install things locally to the virtual env
using pip</div>
<div dir="auto">* Deactivate when finished </div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">This way you create isolated environments for
each one of your applications without messing up with the
system packages. You can then delete them if you don't need
them anymore without the fear of destroying everything... :) </div>
<div dir="auto"><br>
</div>
<div dir="auto">There are also other tools to make this even
more pleasant (pew, pipenv). </div>
<div dir="auto"><br>
</div>
<br>
<div class="gmail_quote" dir="auto">
<div dir="ltr" class="gmail_attr">On Mon, 2 Dec 2019, 19:51
Forrest, <<a href="mailto:forrie@forrie.com"
moz-do-not-send="true">forrie@forrie.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">I'm new to
Python and I'm trying to figure out why, for example, when I
<br>
install aws-cli (from source) using Macports, it doesn't
install <br>
properly vs /usr/bin/python that does the right thing and
places the <br>
commands in proper places. When I run
"/opt/local/bin/python setup.py <br>
install" it ends up buried in directories under the Macports
directory <br>
structure, which isn't usable. Maybe I am missing some ENV
variables?<br>
<br>
<br>
<br>
F<br>
<br>
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>