mediawiki-client-tools / mediawiki-dump-generator

Python 3 tools for downloading and preserving wikis
https://github.com/mediawiki-client-tools/mediawiki-scraper
GNU General Public License v3.0
89 stars 14 forks source link

pip install --force-reinstall dist/*.whl on Windows #167

Closed scalver1234 closed 1 year ago

scalver1234 commented 1 year ago

Hello. I can't get the wildcard to work on Windows. Python 3.8 Tried from command prompt and powershell and windows terminal

PS C:\E30zonewiki\mediawiki-scraper> pip install --force-reinstall dist/.whl WARNING: Requirement 'dist/.whl' looks like a filename, but the file does not exist ERROR: *.whl is not a valid wheel filename.

robkam commented 1 year ago

Searching for "ERROR: *.whl is not a valid wheel filename." on the web leads to various discussions about Windows not expanding wildcard paths.

Using the full filename instead gets a successfull install: pip install --force-reinstall dist/wikiteam3-3.0.0-py3-none-any.whl

robkam commented 1 year ago

For Windows command prompt use the following instead: for %w in (dist\*.whl) do pip install --force-reinstall %w

I don't know what the workaround in Powershell should be.

robkam commented 1 year ago

For Powershell do pip install --force-reinstall (Get-ChildItem .\dist\*.whl).FullName