linux_wiki:python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux_wiki:python [2018/07/06 07:03]
billdozor [Pip Commands]
linux_wiki:python [2018/07/06 07:05]
billdozor [Pip Config]
Line 120: Line 120:
  
 #your config here</code> #your config here</code>
 +
 +----
 +
 +====== Python Modules ======
 +
 +Some commonly installed Python modules.
 +
 +===== Virtualenv =====
 +
 +Virtualenv "is a tool to create isolated Python environments."
 +
 +Site: https://virtualenv.pypa.io/en/stable/
 +
 +  * Python2<code bash>pip install virtualenv</code>
 +  * Python3<code bash>pip3 install virtualenv</code>
 +
 +----
 +
 +===== PipEnv =====
 +
 +PipEnv "automatically creates and manages a virtualenv for your projects, as well as adds/removes packages from your Pipfile as you install/uninstall packages. It also generates the ever–important Pipfile.lock, which is used to produce deterministic builds."
 +
 +Site: https://github.com/pypa/pipenv
 +
 +  * Python2<code bash>pip install pipenv</code>
 +  * Python3<code bash>pip3 install pipenv</code>
 +
 +----
 +
 +===== AWS CLI =====
 +
 +AWS CLI "is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts."
 +
 +Site: https://aws.amazon.com/cli/
 +
 +Pre-Reqs<code bash>yum install expat-devel</code>
 +
 +Install
 +  * Python2<code bash>pip install awscli</code>
 +  * Python3<code bash>pip3 install awscli</code>
 +
 +Verify
 +  * Python2 and Python3<code bash>aws --version</code>
 +
 +==== Cert Verify Failed ====
 +
 +If you are seeing errors while using the aws cli about "SSL: CERTIFICATE_VERIFY_FAILED"
 +  * Point the aws cli to the system ca bundle (**per user**)<code bash>vim ~/.bashrc
 +
 +# AWS CA Bundle
 +export AWS_CA_BUNDLE="/etc/pki/tls/certs/ca-bundle.crt"</code>
 +  * Source the file<code bash>source ~/.bashrc</code>
  
 ---- ----
  
  • linux_wiki/python.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)