无法将 SleepPY 安装到 Windows 10

trouble installing SleepPY onto Windows 10

我想将 Python 库 SleepPY 安装到我的 windows 10 上,但出现以下错误...

我在 Windows 10 上安装了 Python 2.7(在安装 Python 3.9.1 之后)。
我按照说明安装了 SleepPY:

git 克隆 https://github.com/elyiorgos/sleeppy.git
cd sleeppy
python setup.py 安装

...但出现此错误:

C:\PRIMARY\WORK\sleeppy>python setup.py install
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

所以,我使用了绝对路径但得到了这个错误:

C:\PRIMARY\WORK\sleeppy>\python27\python setup.py install
Traceback (most recent call last):
  File "setup.py", line 1, in <module>
    import setuptools
ImportError: No module named setuptools

然后我尝试了下一条指令:
pip install -r requirements.txt ...又出现了另一个错误:

C:\PRIMARY\WORK\sleeppy>pip install -r requirements.txt
Collecting argparse==1.1
  Downloading argparse-1.1.zip (151 kB)
     |████████████████████████████████| 151 kB 2.2 MB/s
Collecting bitstring==3.1.5
  Downloading bitstring-3.1.5.zip (624 kB)
     |████████████████████████████████| 624 kB 6.4 MB/s
Collecting matplotlib==2.2.4
  Downloading matplotlib-2.2.4.tar.gz (37.0 MB)
     |████████████████████████████████| 37.0 MB 2.2 MB/s
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\doug\appdata\local\programs\python\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Doug\AppData\Local\Temp\pip-install-3xcc1o0e\matplotlib_2bb1334869f24b86835007d17eb16dad\setup.py'"'"'; __file__='"'"'C:\Users\Doug\AppData\Local\Temp\pip-install-3xcc1o0e\matplotlib_2bb1334869f24b86835007d17eb16dad\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Doug\AppData\Local\Temp\pip-pip-egg-info-sxywtc1u'
         cwd: C:\Users\Doug\AppData\Local\Temp\pip-install-3xcc1o0e\matplotlib_2bb1334869f24b86835007d17eb16dad\
    Complete output (61 lines):
    ============================================================================
    Edit setup.cfg to change the build options

    BUILDING MATPLOTLIB
                matplotlib: yes [2.2.4]
                    python: yes [3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020,
                            17:08:21) [MSC v.1927 64 bit (AMD64)]]
                  platform: yes [win32]

    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [not found. pip may install it below.]
          install_requires: yes [handled by setuptools]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found. Using local copy.]
                  freetype: no  [The C/C++ header for freetype
                            (freetype2\ft2build.h) could not be found.  You may
                            need to install the development package.]
                       png: no  [The C/C++ header for png (png.h) could not be
                            found.  You may need to install the development
                            package.]
                     qhull: yes [pkg-config information for 'libqhull' could not
                            be found. Using local copy.]

    OPTIONAL SUBPACKAGES
               sample_data: yes [installing]
                  toolkits: yes [installing]
                     tests: no  [skipping due to configuration]
            toolkits_tests: no  [skipping due to configuration]

    OPTIONAL BACKEND EXTENSIONS
                    macosx: no  [Mac OS-X only]
                    qt5agg: no  [PySide2 not found; PyQt5 not found]
                    qt4agg: no  [PySide not found; PyQt4 not found]
                   gtk3agg: no  [Requires pygobject to be installed.]
                 gtk3cairo: no  [Requires cairocffi or pycairo to be installed.]
                    gtkagg: no  [Requires pygtk]
                     tkagg: yes [installing; run-time loading from Python Tcl /
                            Tk]
                     wxagg: no  [requires wxPython]
                       gtk: no  [Requires pygtk]
                       agg: yes [installing]
                     cairo: no  [cairocffi or pycairo not found]
                 windowing: yes [installing]

    OPTIONAL LATEX DEPENDENCIES
                    dvipng: no
               ghostscript: no
                     latex: no
                   pdftops: no

    OPTIONAL PACKAGE DATA
                      dlls: no  [skipping due to configuration]

    ============================================================================
                            * The following required packages can not be built:
                            * freetype, png
                            * Please check http://gnuwin32.sourceforge.net/packa
                            * ges/freetype.htm for instructions to install
                            * freetype
                            * Please check http://gnuwin32.sourceforge.net/packa
                            * ges/libpng.htm for instructions to install png
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

更新日期--------------------------------
我听从了鲍里斯的建议,但运气不好...

    C:\Python27>python -m pip install sleeppy
    C:\Python27\python.exe: No module named pip
    
    C:\Python27>pip install sleeppy
    ERROR: Could not find a version that satisfies the requirement sleeppy
    ERROR: No matching distribution found for sleeppy


C:\Python27>python
Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> pip install sleeppy
  File "<stdin>", line 1
    pip install sleeppy
              ^

已从 python.org 安装 python-2.7.18.amd64.msi (还安装了 pip 10.2.3)

cd \python27
python.exe 并验证 2.7.18

添加到 Windows 10 路径:

c:\Python27
C:\Python27\Scripts         
C:\Python27\Tools\Scripts

pip 安装 sleepy

鲍勃是我叔叔;你的也是。