trying to get PATH working properly for python installation

This commit is contained in:
Brendan McDevitt 2016-10-16 08:31:52 -05:00
parent 8152e56503
commit 7af0343324
2 changed files with 17 additions and 2 deletions

14
install/pip.sh Normal file → Executable file
View file

@ -1,3 +1,17 @@
#!/bin/bash
# this will install common libraries in pip
# adjust the pip version to whatever coincides with the python version installed in python.sh
# should be a good base of pkgs - https://pythontips.com/2013/07/30/20-python-libraries-you-cant-live-without/ip2 install lxml
version=2.7
pip${version} install requests
pip${version} install lxml
pip${version} install requests
pip${version} install scrapy
pip${version} install BeautifulSoup4
pip${version} install twisted
pip${version} install numpy
pip${version} install scapy
pip${version} install nose
pip${version} install ipython

View file

@ -5,6 +5,7 @@
# https://www.python.org/downloads/
py_version=2.7.12
pip_version=2.7
download_url=https://www.python.org/ftp/python/2.7.12/Python-${py_version}.tar.xz
# download the python version and extract it
@ -24,5 +25,5 @@ make install
# update the users $PATH variable to include the newly installed python binary
export PATH="$DOTFILES_DIR/python/Python-${py_version}:$PATH"
export PYTHONPATH="$DOTFILES_DIR/python/Python-${py_version}"
export PATH="$DOTFILES_DIR/python/bin:$PATH"
export PYTHONPATH="$DOTFILES_DIR/python/bin"