Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


python_notes

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
python_notes [2017/08/29 08:36] – created juckinspython_notes [2019/09/11 17:05] juckins
Line 1: Line 1:
 ==== Python Notes ==== ==== Python Notes ====
 +  
 +Install Python 3.6 on CentOS 7:
 +  * https://linuxhint.com/install_python3_centos7/
 +  * https://janikarhunen.fi/how-to-install-python-3-6-1-on-centos-7.html
  
-Use "pip" to manage python packages.   +Do some local configuration for my scripts (su - root): 
- +  pip3.6 install --upgrade pip 
-  # yum install python2-pip+  pip3.6 install --upgrade httplib2 
 +  pip3.6 install pymysql 
 +  pip3.6 install selenium-wire 
 +  pip3.6 install chromedriver 
 +  pip3.6 install chromedriver_binary 
 +  pip3.6 install dictor 
 +  pip3.6 install wget 
 +  pip3.6 install pip-upgrade-outdated
      
-  # pip list+Note that https://pypi.org/project/pip-upgrade-outdated/ is a good resource to update all PIP packages.
      
 +Download and install geckodriver (see https://github.com/mozilla/geckodriver/releases)
  
 +As root, copy geckodriver to /usr/local/bin
 +
 +Notes at https://stackoverflow.com/questions/40208051/selenium-using-python-geckodriver-executable-needs-to-be-in-path
 +  
 +Notes about [[https://www.tutorialspoint.com/python3/python_database_access.htm|Python database access]]
 +
 +Python3.7 on Fedora 28:
 +  * dnf install python37
 +  * wget https://bootstrap.pypa.io/get-pip.py
 +  * python3.7 get-pip.py
 +  * python3.7 -m pip install requests
 +
 +Use "pip" to manage python packages:
 +
 +  # yum install python2-pip
 +
 +To list installed python modules:
 +  
 +  $ pip list
python_notes.txt · Last modified: 2023/04/05 08:56 by juckins