Install watchdog on Windows + Python 3.3

watchdog is what

watchdog is a file system monitoring tool written in Python.

see also: The watchmedo command of the watchdog module is useful-the spill of biased language followers

Installation

The watchdog currently runs on Python 2.5 and above, so most environments are done by running the following command:

pip install watchdog

Windows + Python 3.3 However, if you are in a Windows environment and the version of Python with pip is 3.3, it may fail with the following error: (In my case, Python 3.2 was fine and I got this error in Python 3.3)

argh.py


UnicodeDecodeError: 'cp932' codec can't decode byte 0x94 in position 112: illegal multibyte sequence

counter-measure

If this happens, follow the steps below to continue the installation.

Modify argh / setup.py

I think that the working directory during installation is created in your Python installation destination or in a virtual environment created by virtualenv. The installation of argh has failed, so let's open argh / setup.py. There is a tab character near the number of lines pointed out in the error message, so replace it with four single-byte spaces.

Installation of argh

After modifying setup.py, go to the argh folder and hit the following command to install argh.

python install setup.py

Watchdog installation retry

This shouldn't hinder you, so hit pip install watchdog again. If you're still in the argh folder, you might want to move the path.

bonus

If you use watchdog with joy and courage, you will immediately get the following error:

bricks.py


    if not sys.version < (2, 6, 0):
TypeError: unorderable types: str() < tuple()

It's very disappointing, so open this bricks.py from the folder where you installed watchdog and replace sys.version with sys.version_info.

Recommended Posts

Install watchdog on Windows + Python 3.3
Install python on windows
[Python] [Chainer] [Windows] Install Chainer on Windows
Python on Windows
Install python2.7 on windows 32bit environment
Install xgboost (python version) on Windows
Install Python on Windows + pip + virtualenv
Install Pytorch on Blender 2.90 python on Windows
Install Python development environment on Windows 10
Install python on WSL
Install Python on Pidora.
Install Scrapy on python3
[Kivy] How to install Kivy on Windows [Python]
Install Python on Mac
Install Python 3 on Mac
Install Python3.4 on CentOS 6.6
Install Anaconda on Windows 10
python basic on windows ②
Install pycuda on Windows10
Install Python 2.7.3 on CentOS 5.4
Install pygraphviz on Windows 10
Install Python 3.3 on Ubuntu 12.04
Install Chainer 1.5.0 on Windows
Install Python 3.4 on Mac
Install Python 3.6 on Docker
Install Python (for Windows)
Install and run Python3.5 + NumPy + SciPy on Windows 10
Install Python3, numpy, pandas, matplotlib, etc. on Windows
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
[Python] How to install OpenCV on Anaconda [Windows]
Install ZIP version Python and pip on Windows 10
Install Numpy on virtualenv on Windows
Set-enable Python virtualenv on Windows
Run Openpose on Python (Windows)
How to install Python [Windows]
Install Python 3.8 on RHEL 8 (AppStream)
Install Python and Flask (Windows 10)
Install Win-Kex (kali-linux) on Windows 10.
Install pygame on python3.4 on mac
Windows10: Install python dlib library
Install cvxpy on windows, Anaconda
Python + Kivy development on Windows
Install Python 3.8 on CentOS 7 (SCL)
Sphinx-autobuild (0.5.2) on Windows7, Python 3.5.1, Sphinx 1.3.5
Fastest Python installation on Windows
Build Python environment on Windows
Install pandas 0.14 on python3.4 [on Mac]
Install OpenCV on Ubuntu + python
Install Chainer 1.6 (GPU) on Windows 7.
Build python environment on windows
Python --Install MySQLDB on EC2
Install Python 3.8 on CentOS 8 (AppStream)
I ran python on windows
Python install in 2 lines @Windows
Use Python on Windows (PyCharm)
Install dlib for Python (Windows)
install python
[Windows] [Python3] Install python3 and Jupyter Notebook (formerly ipython notebook) on Windows
Install Bash on Ubuntu on Windows, Ruby, Python, Jupyter, etc.
For those who can't install Python on Windows XP
Python environment construction memo on Windows 10