python_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
python_notes [2019/06/26 15:07] – juckins | python_notes [2019/09/30 14:09] – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== Python Notes ==== | ==== Python Notes ==== | ||
| | ||
- | Install | + | With CentOS7.7, python3 can load from base. Do the following to fix previously-installed IUS release: |
+ | |||
+ | # yum remove python36u | ||
+ | # yum install python3 | ||
+ | # yum remove ius-release | ||
+ | |||
+ | Then follow instructions for installing local python packages to ensure all still work. | ||
+ | |||
+ | __Install | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
- | Do some local configuration for my scripts: | + | Do some local configuration for my scripts |
pip3.6 install --upgrade pip | pip3.6 install --upgrade pip | ||
pip3.6 install --upgrade httplib2 | pip3.6 install --upgrade httplib2 | ||
pip3.6 install pymysql | 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:// | ||
+ | | ||
+ | Download and install geckodriver (see https:// | ||
+ | |||
+ | As root, copy geckodriver to / | ||
+ | |||
+ | Notes at https:// | ||
| | ||
Notes about [[https:// | Notes about [[https:// | ||
Line 25: | Line 51: | ||
| | ||
$ pip list | $ pip list | ||
+ | | ||
+ | [[https:// | ||
+ | |||
+ | logging.basicConfig(format=' | ||
+ | logging.debug(' | ||
+ | logging.info(' | ||
+ | logging.warning(' | ||
+ | |||
+ | |||
+ | [[https:// |
python_notes.txt · Last modified: 2023/04/05 08:56 by juckins