python_notes
This is an old revision of the document!
Python Notes
Install Python 3.6 on CentOS 7:
Do some local configuration for my scripts (su - root):
pip3.6 install --upgrade 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
To update all pip packages:
# pip_upgrade_outdated
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 about Python database access
Python3.7 on Fedora 28:
- dnf install python37
- 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.1568236064.txt.gz · Last modified: 2019/09/11 17:07 by juckins