<div dir="ltr">this may be unrelated but do anyone knows how can I change the python version in spyder? I have some scripts that work with python 2 and others with python 3. </div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 15, 2017 at 7:45 AM, Jeremy Lavergne <span dir="ltr"><<a href="mailto:jeremy@lavergne.me" target="_blank">jeremy@lavergne.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">To that end, also check out using pip-tools along with virtualenv. This<br>
will allow you to determine the whole set of dependencies and their<br>
versions.<br>
<br>
Example shell script using pip-tools inside a virtualenv for producing a<br>
requirements.txt for `pip install --upgrade -r requirements.txt`:<br>
<br>
#!/usr/bin/env bash<br>
set -eux<br>
# needs pip-tools: sudo pip install -U pip-tools<br>
<br>
HERE="$(dirname $0)"<br>
REQUIREMENTS_FILE="${HERE}/<wbr>requirements.txt"<br>
<br>
REQUIREMENTS_VE="/tmp/<wbr>requirements_update_ve"<br>
<br>
rm -rf "${REQUIREMENTS_VE}"<br>
virtualenv "${REQUIREMENTS_VE}"<br>
set +eux<br>
. "${REQUIREMENTS_VE}/bin/<wbr>activate"<br>
set -eux<br>
pip install -U pip-tools<br>
<br>
pip-compile --upgrade --rebuild --verbose --annotate<br>
--output-file=${REQUIREMENTS_<wbr>FILE} - <<REQUIREMENTS<br>
awscli<br>
boto<br>
boto3<br>
lxml<br>
netaddr<br>
requests<br>
beautifulsoup4<br>
REQUIREMENTS<br>
<br>
rm -rf "${REQUIREMENTS_VE}"<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 03/14/2017 10:42 PM, Kendall Shaw wrote:<br>
> virtualenv allows you to isolate your projects from each other and from<br>
> a surrounding python system. So, for example, 1 project that has a<br>
> dependency  that is incompatible with a dependency in another project<br>
> can still work since they are isolated from each other.<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Alexander Garcia<br><a href="http://www.alexandergarcia.name/" target="_blank">http://www.alexandergarcia.name/</a><br><a href="http://www.usefilm.com/photographer/75943.html" target="_blank">http://www.usefilm.com/photographer/75943.html</a><br><a href="http://www.linkedin.com/in/alexgarciac" target="_blank">http://www.linkedin.com/in/alexgarciac</a><br><br></div>
</div>