Thanks for replying so quickly
PS D:\Progs\wpy64-3770\python-3.7.7.amd64> PIP install rest_uploader
PIP : The term 'PIP' is not recognized as the name of a cmdlet, function, script file, or operable program
both in PowerShell as admin or not
Interesting that when I type python -V in powershell nothing is returned but in a Command Prompt window I get the version no. Bizarre.
So it looks like my download of WinPython doesn’t include PIP (although it says it does)
WinPython has a program called WinPython Command Prompt.exe so ran it and voila:
D:\Progs\WPy64-3770\scripts>pip install rest_uploader
Collecting rest_uploader
Downloading rest_uploader-1.5.0-py2.py3-none-any.whl (9.3 kB)
Requirement already satisfied: requests in d:\progs\wpy64-3770\python-3.7.7.amd64\lib\site-packages (from rest_uploader) (2.23.0)
Collecting Click>=6.0
Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
|████████████████████████████████| 82 kB 6.1 MB/s
Collecting tabulate
Downloading tabulate-0.8.7-py3-none-any.whl (24 kB)
Collecting PyPDF2
Downloading PyPDF2-1.26.0.tar.gz (77 kB)
|████████████████████████████████| 77 kB 5.1 MB/s
Collecting pytesseract
Downloading pytesseract-0.3.4.tar.gz (13 kB)
Collecting pdf2image
Downloading pdf2image-1.13.1-py3-none-any.whl (10.0 kB)
Collecting watchdog
Downloading watchdog-0.10.2.tar.gz (95 kB)
|████████████████████████████████| 95 kB 6.4 MB/s
Requirement already satisfied: chardet<4,>=3.0.2 in d:\progs\wpy64-3770\python-3.7.7.amd64\lib\site-packages (from requests->rest_uploader) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in d:\progs\wpy64-3770\python-3.7.7.amd64\lib\site-packages (from requests->rest_uploader) (1.25.9)
Requirement already satisfied: certifi>=2017.4.17 in d:\progs\wpy64-3770\python-3.7.7.amd64\lib\site-packages (from requests->rest_uploader) (2020.4.5.1)
Requirement already satisfied: idna<3,>=2.5 in d:\progs\wpy64-3770\python-3.7.7.amd64\lib\site-packages (from requests->rest_uploader) (2.9)
Collecting Pillow
Downloading Pillow-7.1.2-cp37-cp37m-win_amd64.whl (2.0 MB)
|████████████████████████████████| 2.0 MB 6.4 MB/s
Collecting pathtools>=0.1.1
Downloading pathtools-0.1.2.tar.gz (11 kB)
Building wheels for collected packages: PyPDF2, pytesseract, watchdog, pathtools
Building wheel for PyPDF2 (setup.py) ... done
Created wheel for PyPDF2: filename=PyPDF2-1.26.0-py3-none-any.whl size=61087 sha256=f6cbc86401db9268147b8a3e5e5c83d5a981427bd999923d50f89e109a9c51f8
Stored in directory: c:\users\roger\appdata\local\pip\cache\wheels\80\1a\24\648467ade3a77ed20f35cfd2badd32134e96dd25ca811e64b3
Building wheel for pytesseract (setup.py) ... done
Created wheel for pytesseract: filename=pytesseract-0.3.4-py2.py3-none-any.whl size=13439 sha256=46280639c984c8545fa5ecdee583c90bfae3fe6e49de19feec5d683e5955722c
Stored in directory: c:\users\roger\appdata\local\pip\cache\wheels\51\71\e6\07d988150d601c7c4ec08665d9c048a6a4c1c57f25c2c34e53
Building wheel for watchdog (setup.py) ... done
Created wheel for watchdog: filename=watchdog-0.10.2-py3-none-any.whl size=73609 sha256=1b0317709c21be3ab74a566715865df324e78d554a3df10e68ed84bfe057a5aa
Stored in directory: c:\users\roger\appdata\local\pip\cache\wheels\36\93\24\29e375ee74e0f178889e6906cb73e693e9f06a5f589dcee6b9
Building wheel for pathtools (setup.py) ... done
Created wheel for pathtools: filename=pathtools-0.1.2-py3-none-any.whl size=8790 sha256=c1c7e6babf79f35b7dc1a0305f8af9a83953b3ce2b1281959c4d08091e1c81fd
Stored in directory: c:\users\roger\appdata\local\pip\cache\wheels\3e\31\09\fa59cef12cdcfecc627b3d24273699f390e71828921b2cbba2
Successfully built PyPDF2 pytesseract watchdog pathtools
Installing collected packages: Click, tabulate, PyPDF2, Pillow, pytesseract, pdf2image, pathtools, watchdog, rest-uploader
Successfully installed Click-7.1.2 Pillow-7.1.2 PyPDF2-1.26.0 pathtools-0.1.2 pdf2image-1.13.1 pytesseract-0.3.4 rest-uploader-1.5.0 tabulate-0.8.7 watchdog-0.10.2
WARNING: You are using pip version 20.0.2; however, version 20.1 is available.
You should consider upgrading via the 'D:\Progs\WPy64-3770\python-3.7.7.amd64\python.exe -m pip install --upgrade pip' command.
D:\Progs\WPy64-3770\scripts>
This prompts some questions
- is that what you expected? is it all OK?
- it says it downloaded rest_uploader…whl - so I needn’t have downloaded the .gz version?
Now I get:
D:\Progs\WPy64-3770>python -m rest_uploader d:\Temp\Scans
D:\Progs\WPy64-3770\python-3.7.7.amd64\python.exe: No module named rest_uploader.__main__; 'rest_uploader' is a package and cannot be directly executed
I have found that rest_uploader.exe is present in D:\Progs\WPy64-3770\python-3.7.7.amd64\Scripts
Any ideas?