Giter Club home page Giter Club logo

pipwin's Introduction

pipwin

Latest Version Build License

This tool is unmaintained now and the repository is archived. See this issue for more details.

pipwin is a complementary tool for pip on Windows. pipwin installs unofficial python package binaries for windows provided by Christoph Gohlke here http://www.lfd.uci.edu/~gohlke/pythonlibs/

QuickStart

>> pip install pipwin
>> pipwin search cv

Did you mean any of these ?

  * cvxopt
  * opencv-python
  * abcview
  * cvxpy

>> pipwin install opencv-python

>> pipwin install numpy>=1.11

Details

  • On first run, pipwin builds a cache of available package list in ~/.pipwin

  • You can force a cache rebuild using : pipwin refresh

  • List all available packages : pipwin list

  • Search packages : pipwin search <partial_name/name>

  • Install packages : pipwin install <package>

    Also works version specifiers, e.g. pipwin install <package>==<version> or pipwin install <package><=<version>

  • Download only (to ~/pipwin or <dest> if provided) : pipwin download -d <dest> <package>

  • Install from pipwin requirements file : pipwin install -r requirements.txt

  • Download only from pipwin requirements file : pipwin download -r requirements.txt

  • Uninstall packages (Can directly use pip for this) : pipwin uninstall <package>

Free software: BSD license

Changelog

v0.5.2

  • Fixed issue where install -r (filename) does not work <#62>.

v0.5.1

  • Support for --proxy flag via PR#54 <#54>.

v0.5.0

  • Handles text vs string parsing for beautifulsoup4 for python2 vs python3.
  • Fixes issue 43 <#43>

v0.4.9

  • More robust whitespace handling in requirement parsing.

v0.4.8

  • Using PySmartDL to handle download and install of packages.
  • Removed progress bar and streaming downloader blocks now handled by PySmartDL.

v0.4.7

  • Using postman client type to overcome use of robobrowser to create package cache.

pipwin's People

Contributors

ed-alertedh avatar edbordin avatar fx-kirin avatar gbassisp avatar lepisma avatar orlp avatar paulfd avatar pbrod avatar rcoup avatar samapriya avatar smartmanoj avatar staticfloat avatar stefanhg avatar woutdenolf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pipwin's Issues

raise BadZipfile, "File is not a zip file"

C:\Users\>pipwin install pyqt4
C:\Users\\.pipwin
Package found in cache
Downloading package . . .
http://www.lfd.uci.edu/~gohlke/pythonlibs/AuDkqpdh/PyQt4-4.11.4-cp27-none-win32.
whl
PyQt4-4.11.4-cp27-none-win32.whl
0%  100%
[]Processing c:\users\\pipwin\pyqt4-4.11.4-cp27-none-win32.whl
Exception:
Traceback (most recent call last):
  File "c:\python\python27\lib\site-packages\pip\basecommand.py", line 211, in m
ain
    status = self.run(options, args)
  File "c:\python\python27\lib\site-packages\pip\commands\install.py", line 305,
 in run
    wb.build(autobuilding=True)
  File "c:\python\python27\lib\site-packages\pip\wheel.py", line 705, in build
    self.requirement_set.prepare_files(self.finder)
  File "c:\python\python27\lib\site-packages\pip\req\req_set.py", line 334, in p
repare_files
    functools.partial(self._prepare_file, finder))
  File "c:\python\python27\lib\site-packages\pip\req\req_set.py", line 321, in _
walk_req_to_install
    more_reqs = handler(req_to_install)
  File "c:\python\python27\lib\site-packages\pip\req\req_set.py", line 491, in _
prepare_file
    session=self.session)
  File "c:\python\python27\lib\site-packages\pip\download.py", line 814, in unpa
ck_url
    unpack_file_url(link, location, download_dir)
  File "c:\python\python27\lib\site-packages\pip\download.py", line 723, in unpa
ck_file_url
    unpack_file(from_path, location, content_type, link)
  File "c:\python\python27\lib\site-packages\pip\utils\__init__.py", line 645, i
n unpack_file
    flatten=not filename.endswith('.whl')
  File "c:\python\python27\lib\site-packages\pip\utils\__init__.py", line 531, i
n unzip_file
    zip = zipfile.ZipFile(zipfp, allowZip64=True)
  File "c:\python\python27\lib\zipfile.py", line 770, in __init__
    self._RealGetContents()
  File "c:\python\python27\lib\zipfile.py", line 811, in _RealGetContents
    raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file

C:\Users\>pipwin install pyqt
C:\Users\\.pipwin
Did you mean any of these ?

 * pyqtdesignerplugins
 * pyqtgraph
 * pyqt4


C:\Users\>


error - BadZipfile: File is not a zip file

Just installed pipwin - great idea.
however.
I tried to run pipwin install boost-python
and got the following exception (see below)
worked fine if i manually download the file and install it with pip.
cheers

Exception:
Traceback (most recent call last):
File "c:\anaconda\lib\site-packages\pip\basecommand.py", line 211, in main
status = self.run(options, args)
File "c:\anaconda\lib\site-packages\pip\commands\install.py", line 305, in run

wb.build(autobuilding=True)

File "c:\anaconda\lib\site-packages\pip\wheel.py", line 705, in build
self.requirement_set.prepare_files(self.finder)
File "c:\anaconda\lib\site-packages\pip\req\req_set.py", line 334, in prepare_
files
functools.partial(self._prepare_file, finder))
File "c:\anaconda\lib\site-packages\pip\req\req_set.py", line 321, in walk_re
q_to_install
more_reqs = handler(req_to_install)
File "c:\anaconda\lib\site-packages\pip\req\req_set.py", line 491, in prepare
file
session=self.session)
File "c:\anaconda\lib\site-packages\pip\download.py", line 814, in unpack_url
unpack_file_url(link, location, download_dir)
File "c:\anaconda\lib\site-packages\pip\download.py", line 723, in unpack_file
url
unpack_file(from_path, location, content_type, link)
File "c:\anaconda\lib\site-packages\pip\utils__init
.py", line 645, in unpac
k_file
flatten=not filename.endswith('.whl')
File "c:\anaconda\lib\site-packages\pip\utils__init
.py", line 531, in unzip
_file
zip = zipfile.ZipFile(zipfp, allowZip64=True)
File "c:\anaconda\lib\zipfile.py", line 770, in init
self._RealGetContents()
File "c:\anaconda\lib\zipfile.py", line 811, in _RealGetContents
raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file

Everything Worked before soem days, Now Giving Error

Error:

Downloading package . . .
https://download.lfd.uci.edu/pythonlibs/w3jqiv8s/PyAudio-0.2.11-cp38-cp38-win_amd64.whl
PyAudio-0.2.11-cp38-cp38-win_amd64.whl
Traceback (most recent call last):
  File "E:\Python Versions\Python3.8.6\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "E:\Python Versions\Python3.8.6\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "D:\PythonProjects\env\Scripts\pipwin.exe\__main__.py", line 7, in <module>
  File "d:\pythonprojects\env\lib\site-packages\pipwin\command.py", line 98, in main
    cache.install(package)
  File "d:\pythonprojects\env\lib\site-packages\pipwin\pipwin.py", line 300, in install
    wheel_file = self.download(requirement)
  File "d:\pythonprojects\env\lib\site-packages\pipwin\pipwin.py", line 294, in download
    return self._download(requirement, dest)
  File "d:\pythonprojects\env\lib\site-packages\pipwin\pipwin.py", line 290, in _download
    obj.start()
  File "d:\pythonprojects\env\lib\site-packages\pySmartDL\pySmartDL.py", line 267, in start
    urlObj = urllib.request.urlopen(req, timeout=self.timeout, context=self.context)
  File "E:\Python Versions\Python3.8.6\lib\urllib\request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "E:\Python Versions\Python3.8.6\lib\urllib\request.py", line 531, in open
    response = meth(req, response)
  File "E:\Python Versions\Python3.8.6\lib\urllib\request.py", line 640, in http_response
    response = self.parent.error(
  File "E:\Python Versions\Python3.8.6\lib\urllib\request.py", line 569, in error
    return self._call_chain(*args)
  File "E:\Python Versions\Python3.8.6\lib\urllib\request.py", line 502, in _call_chain
    result = func(*args)
  File "E:\Python Versions\Python3.8.6\lib\urllib\request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

Provide more details in package listing

Package listing (either in pipwin list or partial search) currently lists the package names in from cache.

This can be improved to display:

  • package version
  • installed package version (if any)

Installing PyAudio Results in 404 Error

when i run pipwin install pyaudio, it gives me the following error:

Traceback (most recent call last):
  File "C:\Users\jmast\AppData\Local\Programs\Python\Python39\Scripts\pipwin-script.py", line 33, in <module>
    sys.exit(load_entry_point('pipwin==0.5.1', 'console_scripts', 'pipwin')())
  File "c:\users\jmast\appdata\local\programs\python\python39\lib\site-packages\pipwin\command.py", line 103, in main
    cache.install(package)
  File "c:\users\jmast\appdata\local\programs\python\python39\lib\site-packages\pipwin\pipwin.py", line 300, in install
    wheel_file = self.download(requirement)
  File "c:\users\jmast\appdata\local\programs\python\python39\lib\site-packages\pipwin\pipwin.py", line 294, in download
    return self._download(requirement, dest)
  File "c:\users\jmast\appdata\local\programs\python\python39\lib\site-packages\pipwin\pipwin.py", line 290, in _download
    obj.start()
  File "c:\users\jmast\appdata\local\programs\python\python39\lib\site-packages\pySmartDL\pySmartDL.py", line 267, in start
    urlObj = urllib.request.urlopen(req, timeout=self.timeout, context=self.context)
  File "c:\users\jmast\appdata\local\programs\python\python39\lib\urllib\request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "c:\users\jmast\appdata\local\programs\python\python39\lib\urllib\request.py", line 523, in open
    response = meth(req, response)
  File "c:\users\jmast\appdata\local\programs\python\python39\lib\urllib\request.py", line 632, in http_response
    response = self.parent.error(
  File "c:\users\jmast\appdata\local\programs\python\python39\lib\urllib\request.py", line 561, in error
    return self._call_chain(*args)
  File "c:\users\jmast\appdata\local\programs\python\python39\lib\urllib\request.py", line 494, in _call_chain
    result = func(*args)
  File "c:\users\jmast\appdata\local\programs\python\python39\lib\urllib\request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

TypeError: 'dict_values' object does not support indexing

> pipwin install lxml
C:\Users\Orson\.pipwin
Package found in cache
Traceback (most recent call last):
  File "c:\dev\python35\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\dev\python35\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\dev\Python35\Scripts\pipwin.exe\__main__.py", line 9, in <module>
  File "c:\dev\python35\lib\site-packages\pipwin\command.py", line 65, in main
    cache.install(args.package)
  File "c:\dev\python35\lib\site-packages\pipwin\pipwin.py", line 232, in install
    url = self.sys_data[package].values()[0]
TypeError: 'dict_values' object does not support indexing

[Issue] Bad import in robobrowser/browser.py

Hi there,
As of today, when I try to use pipwin there's an exception :

ImportError: cannot import name 'cached_property' from 'werkzeug' (D:\MYFOLDER\COURS\3eme_annee_ESIPE\Last Project\python-venv\lpp\lib\site-packages\werkzeug\__init__.py)

This exception is solved by changing this import :

from werkzeug import cached_property

By this import :

from werkzeug.utils import cached_property

In robobrowser/browser.py file line 8
Hope you'll fix this soon.

AttributeError: 'NoneType' object has no attribute 'string

I get this error message if I run

pipwin refresh

or if I try to install a package. I use pipwin v0.5.0.

    dl_function = re.search(r"function dl.*\}", soup.find("script").string).group(0)
AttributeError: 'NoneType' object has no attribute 'string'``

if action to an entry of requirements.txt fails, the whole action is aborted.

for example, i tried pipwin download -r requirements.txt.

if one entry fails, the download for the entries below seems to be simply aborted.

not sure if it is a bug. however, the behavior of pip is just to try other entries even if one entry fails.

(for my error case, the failure was because pipwin couldn't find the package by the name i specified.)

How to install git urls from requirements.txt

My requirements.txt looks like the following:
git+git://github.com/dddomodossola/remi
pyinstaller==4.0

when I run:
pipwin install -r requirements.txt

I get the following error:
Traceback (most recent call last):
File "c:\users\marce\pycharmprojects\srsapp\venv\lib\site-packages\packaging\requirements.py", line 104, in init
req = REQUIREMENT.parseString(requirement_string)
File "c:\users\marce\pycharmprojects\srsapp\venv\lib\site-packages\pyparsing.py", line 1955, in parseString
raise exc
File "c:\users\marce\pycharmprojects\srsapp\venv\lib\site-packages\pyparsing.py", line 3814, in parseImpl
raise ParseException(instring, loc, self.errmsg, self)
pyparsing.ParseException: Expected stringEnd, found '+' (at char 3), (line:1, col:4)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\marce\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\marce\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\marce\PycharmProjects\srsapp\venv\Scripts\pipwin.exe_main
.py", line 7, in
File "c:\users\marce\pycharmprojects\srsapp\venv\lib\site-packages\pipwin\command.py", line 86, in main
for package in _package_names(args):
File "c:\users\marce\pycharmprojects\srsapp\venv\lib\site-packages\pipwin\command.py", line 37, in _package_names
yield Requirement(package)
File "c:\users\marce\pycharmprojects\srsapp\venv\lib\site-packages\packaging\requirements.py", line 106, in init
raise InvalidRequirement(
packaging.requirements.InvalidRequirement: Parse error at "'+git://g'": Expected stringEnd

Incomplete list of packages

Packages are parsed up to pyhdf because the next package pyhook, contains a syntax error (note the </br> at the end):

<li><a id='pygtk'></a>PyGTK, a wrapper for the GTK+ library.<br />
 Requires the GTK+ 2.22 runtime.<br />
 The pycairo module was moved to <em>gtk.cairo</em>.
<ul>...</ul>
</li>

<li><a id='pyhdf'></a> PyHDF, an interface to the NCSA HDF4 library.
<ul>...</ul>
</li>

<li><a id='pyhook'></a>PyHook, a wrapper for global input hooks in Windows.</br>
 PyWinHook is a maintained fork of this package.
<ul>...</ul>
</li>

I notified the author @cgohlke so perhaps it will be fixed soon.

urllib.error.HTTPError: HTTP Error 404: Not Found

this happens when I try to install pyaudio

Package `pyaudio` found in cache
Downloading package . . .
https://download.lfd.uci.edu/pythonlibs/y2rycu7g/PyAudio-0.2.11-cp37-cp37m-win32.whl
PyAudio-0.2.11-cp37-cp37m-win32.whl
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\Scripts\pipwin-script.py", line 11, in <module>
    load_entry_point('pipwin==0.5.1', 'console_scripts', 'pipwin')()
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pipwin\command.py", line 103, in main
    cache.install(package)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pipwin\pipwin.py", line 300, in install
    wheel_file = self.download(requirement)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pipwin\pipwin.py", line 294, in download
    return self._download(requirement, dest)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pipwin\pipwin.py", line 290, in _download
    obj.start()
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pySmartDL\pySmartDL.py", line 267, in start
    urlObj = urllib.request.urlopen(req, timeout=self.timeout, context=self.context)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 531, in open
    response = meth(req, response)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 569, in error
    return self._call_chain(*args)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 503, in _call_chain
    result = func(*args)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

IndexError: list index out of range

pipwin search cv get error:

Building cache. Hang on . . .
c:\python27\lib\site-packages\bs4\__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the bes
t available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another syst
em, or in a different virtual environment, it may use a different parser and behave differently.

To get rid of this warning, change this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "lxml")

  markup_type=markup_type))
Traceback (most recent call last):
  File "c:\python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27\Scripts\pipwin.exe\__main__.py", line 9, in <module>
  File "c:\python27\lib\site-packages\pipwin\command.py", line 65, in main
    cache = pipwin.PipwinCache()
  File "c:\python27\lib\site-packages\pipwin\pipwin.py", line 181, in __init__
    self.data = build_cache()
  File "c:\python27\lib\site-packages\pipwin\pipwin.py", line 87, in build_cache
    mlstr = jsfun[0].split("(")[1].strip()[1:-2]
IndexError: list index out of range

run second time , this error disappear, wired...

pipwin install -r requirements.txt ignores cache

Hello,

I got a case where i need to build the cache and then use pipwin install -r requirements.txt but it does not work.
If you do the following it works fine:

pipwin refresh
pipwin install PyAudio

But if you do the follwing
(Create a file called requirements.txt, where "PyAudio" is written in it without Quotation marks

pipwin refresh
pipwin install -r requirements.txt

It does not work.
Everythign is done inside a venv

Notes:

  • It does not matter if you close the commandpromt or use the same
  • It does not matter if using venv or not
  • If executing pipwin install PyAudio after trying to do pipwin install -r requirements it installs without a problem
  • Pipwin cache fine is created inside the users folder and if removing it, and rebuild cache it does not solve anything
  • IF using a package that are per default functional without having to do refresh it works just fine. In this case the package leather was used as reference

Tests are done 25-11-2021 on pure Python install, no Anaconda.
Windows 10 Enterprise 64 bit version 21H1

[Feature Request] Install all dependency using whl

Some dependencies failed to install
Eg: When installing scrapy using
pipwin install scrapy
Twisted, failed to install
So again I did

pipwin install Twisted

So if a package failed try to install it with its wheel

Not installing latest version of geopandas

For a fresh install of pipwin, it doesn't seem to install the latest version of geopandas. As of today, Gohlke's site has two versions of geopandas: 0.6.x and 0.10.x. Pipwin seems to install 0.6.x by default. I was able to use pipwin install geopandas==0.10.2 to override it, but obviously it would be nice to default to the most recent version.

numpy+mkl installing wrong version

Gohlke has started adding vanilla wheels for numpy and trying to install using "pipwin install numpy" is choosing the vanilla wheel instead of the mkl wheel. Is there a way to request the mkl version without specifying a specific version number?

urllib.error.URLError: urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091)>

i was trying to install geopans on my desktop

Package `gdal` found in cache
Downloading package . . .
https://download.lfd.uci.edu/pythonlibs/archived/cp37/GDAL-3.4.2-cp37-cp37m-win_amd64.whl
GDAL-3.4.2-cp37-cp37m-win_amd64.whl
Traceback (most recent call last):
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\urllib\request.py", line 1350, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\http\client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\http\client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\http\client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\http\client.py", line 1036, in _send_output
    self.send(msg)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\http\client.py", line 976, in send
    self.connect()
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\http\client.py", line 1451, in connect
    server_hostname=server_hostname)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\ssl.py", line 423, in wrap_socket
    session=session
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\ssl.py", line 870, in _create
    self.do_handshake()
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\ssl.py", line 1139, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\Scripts\pipwin.exe\__main__.py", line 7, in <module>
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\site-packages\pipwin\command.py", line 103, in main
    cache.install(package)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\site-packages\pipwin\pipwin.py", line 300, in install
    wheel_file = self.download(requirement)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\site-packages\pipwin\pipwin.py", line 294, in download
    return self._download(requirement, dest)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\site-packages\pipwin\pipwin.py", line 290, in _download
    obj.start()
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\site-packages\pySmartDL\pySmartDL.py", line 267, in start
    urlObj = urllib.request.urlopen(req, timeout=self.timeout, context=self.context)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\urllib\request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\urllib\request.py", line 525, in open
    response = self._open(req, data)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\urllib\request.py", line 543, in _open
    '_open', req)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\urllib\request.py", line 503, in _call_chain
    result = func(*args)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\urllib\request.py", line 1393, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "C:\Users\audwl\anaconda3\envs\py37_crawler\lib\urllib\request.py", line 1352, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091)>

and tried to download wheel file by myself with this url
https://download.lfd.uci.edu/pythonlibs/archived/cp37/GDAL-3.4.2-cp37-cp37m-win_amd64.whl

it says server's security certification expired

SSLEOFError

I just tried pipwin install numpy and got the following error:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.lfd.uci.edu', port=443): Max retries exceeded with url: /~gohlke/pythonlibs/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:748)'),))

I'm using pipwin 0.3.2 on python 3.6.2, Win 10 x64

I wonder if this is simply a bug or if Gohlke has put countermeasures in place... TBH I've never really understood why you'd make such a great public resource but then try to hinder access to it. I can only guess that he fears opening it up to automated install/package managers would cause a flood of extra traffic.

Is the package dead?

Since issue #65 is not resolved yet I am questioning if the website will ever get up and running again.
Anyone knows if this package is dead?

Make pipwin executable as a module

You can run pip by invoking the module directly:

python3 -m pip ...

This has the advantage that it doesn't require any executables in path other than Python, and always finds the right pip for the right python version. It would be nice if we could do the same for pipwin.

JSONDecodeError on Python3.5

Python3.5 from recent miniconda, pipwin 0.2.3:

$ pipwin search cv
C:\Users\Darwin\.pipwin
Traceback (most recent call last):
  File "c:\users\darwin\miniconda3\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\darwin\miniconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Darwin\Miniconda3\Scripts\pipwin.exe\__main__.py", line 9, in <module>
  File "c:\users\darwin\miniconda3\lib\site-packages\pipwin\command.py", line 39, in main
    cache = pipwin.PipwinCache()
  File "c:\users\darwin\miniconda3\lib\site-packages\pipwin\pipwin.py", line 174, in __init__
    self.data = json.loads(cache_dump)
  File "c:\users\darwin\miniconda3\lib\json\__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "c:\users\darwin\miniconda3\lib\json\decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "c:\users\darwin\miniconda3\lib\json\decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

pipwin install rtree 404 error

I tried to install rtree through pip install rtree, But it throws the error code 404 not found as below. I tried to install other packages too, But the error message is same for all. Can anyone help?

https://download.lfd.uci.edu/pythonlibs/w3jqiv8s/Rtree-0.9.4-cp38-cp38-win_amd64.whl
Rtree-0.9.4-cp38-cp38-win_amd64.whl
Traceback (most recent call last):
  File "C:\Program Files\python\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\python\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "F:\SDSS\1. code\django\venv\Scripts\pipwin.exe\__main__.py", line 7, in <module>
  File "f:\sdss\1. code\django\venv\lib\site-packages\pipwin\command.py", line 98, in main
    cache.install(package)
  File "f:\sdss\1. code\django\venv\lib\site-packages\pipwin\pipwin.py", line 300, in install
    wheel_file = self.download(requirement)
  File "f:\sdss\1. code\django\venv\lib\site-packages\pipwin\pipwin.py", line 294, in download
    return self._download(requirement, dest)
  File "f:\sdss\1. code\django\venv\lib\site-packages\pipwin\pipwin.py", line 290, in _download
    obj.start()
  File "f:\sdss\1. code\django\venv\lib\site-packages\pySmartDL\pySmartDL.py", line 257, in start
    urlObj = urllib.request.urlopen(req, timeout=self.timeout)
  File "C:\Program Files\python\lib\urllib\request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Program Files\python\lib\urllib\request.py", line 531, in open
    response = meth(req, response)
  File "C:\Program Files\python\lib\urllib\request.py", line 640, in http_response
    response = self.parent.error(
  File "C:\Program Files\python\lib\urllib\request.py", line 569, in error
    return self._call_chain(*args)
  File "C:\Program Files\python\lib\urllib\request.py", line 502, in _call_chain
    result = func(*args)
  File "C:\Program Files\python\lib\urllib\request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

problem installing numpy (Windows XP, Python 3.4)

I use Python 3.4 in Windows XP 32bits and I have successfully installed many Python packages using binaries provided by @cgohlke .

But for some reason I am not being able to install the basic package Numpy+MKL which is required by many other packages.
I have the feeling that my problem is related to the fact of having a "+" symbol inside the package name:

C:\python34\scripts\>pip install numpy-1.16.6+mkl-cp34-cp34m-win32.whl
DEPRECATION: Python 3.4 support has been deprecated. (...).
WARNING: Requirement 'numpy\u20111.16.6+mkl\u2011cp34\u2011cp34m\u2011win32.whl' looks like a filename, but the file does not exist
ERROR: numpy\u20111.16.6+mkl\u2011cp34\u2011cp34m\u2011win32.whl is not a valid wheel filename.

Actually, if I change the file name, then installation begins but I suspect the file name has importance here because not all names work (the one I tried I removed the mkl part, of the name, but then mkl package was missing).
I would be grateful if someone could help me this problem.

In the mean time, I also tried to install pipwin (as it is supposed to facilitate installation of these packages). But a different error raised here, which I suspect has nothing to do with numpy package:

c:\python34\scripts\pipwin install numpy

Building cache. Hang on . . .
Done
Package `numpy` found in cache
Downloading package . . .
https://download.lfd.uci.edu/pythonlibs/w4tscw6k/cp34/numpy-1.16.6+vanilla-cp34-cp34m-win32.whl
numpy-1.16.6+vanilla-cp34-cp34m-win32.whl
Traceback (most recent call last):
  File "c:\python34\lib\urllib\request.py", line 1183, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "c:\python34\lib\http\client.py", line 1137, in request
    self._send_request(method, url, body, headers)
  File "c:\python34\lib\http\client.py", line 1182, in _send_request
    self.endheaders(body)
  File "c:\python34\lib\http\client.py", line 1133, in endheaders
    self._send_output(message_body)
  File "c:\python34\lib\http\client.py", line 963, in _send_output
    self.send(msg)
  File "c:\python34\lib\http\client.py", line 898, in send
    self.connect()
  File "c:\python34\lib\http\client.py", line 1287, in connect
    server_hostname=server_hostname)
  File "c:\python34\lib\ssl.py", line 362, in wrap_socket
    _context=self)
  File "c:\python34\lib\ssl.py", line 580, in __init__
    self.do_handshake()
  File "c:\python34\lib\ssl.py", line 807, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python34\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python34\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "c:\python34\scripts\pipwin.exe\__main__.py", line 9, in <module>
  File "c:\python34\lib\site-packages\pipwin\command.py", line 103, in main
    cache.install(package)
  File "c:\python34\lib\site-packages\pipwin\pipwin.py", line 300, in install
    wheel_file = self.download(requirement)
  File "c:\python34\lib\site-packages\pipwin\pipwin.py", line 294, in download
    return self._download(requirement, dest)
  File "c:\python34\lib\site-packages\pipwin\pipwin.py", line 290, in _download
    obj.start()
  File "c:\python34\lib\site-packages\pySmartDL\pySmartDL.py", line 267, in start
    urlObj = urllib.request.urlopen(req, timeout=self.timeout, context=self.context)
  File "c:\python34\lib\urllib\request.py", line 161, in urlopen
    return opener.open(url, data, timeout)
  File "c:\python34\lib\urllib\request.py", line 464, in open
    response = self._open(req, data)
  File "c:\python34\lib\urllib\request.py", line 482, in _open
    '_open', req)
  File "c:\python34\lib\urllib\request.py", line 442, in _call_chain
    result = func(*args)
  File "c:\python34\lib\urllib\request.py", line 1226, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "c:\python34\lib\urllib\request.py", line 1185, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)>

Any hints on how to solve this?
Thanks a lot

TypeError: an integer is required (got type bytes)

I am trying to install pyaudio, but it is not working:

d:\User\Dropbox\SoftwareVersioning\Forks\anki>python --version
Python 3.8.1

d:\User\Dropbox\SoftwareVersioning\Forks\anki>pipwin install pyaudio
Traceback (most recent call last):
  File "f:\python\lib\runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "f:\python\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "F:\Python\Scripts\pipwin.exe\__main__.py", line 4, in <module>
  File "f:\python\lib\site-packages\pipwin\command.py", line 27, in <module>
    from . import pipwin, __version__
  File "f:\python\lib\site-packages\pipwin\pipwin.py", line 14, in <module>
    import js2py
  File "f:\python\lib\site-packages\js2py\__init__.py", line 69, in <module>
    from .base import PyJsException
  File "f:\python\lib\site-packages\js2py\base.py", line 2391, in <module>
    FunctionPrototype = PyJsFunction(Empty, ObjectPrototype)
  File "f:\python\lib\site-packages\js2py\base.py", line 1279, in __init__
    cand = fix_js_args(func)
  File "f:\python\lib\site-packages\js2py\utils\injector.py", line 26, in fix_js_args
    code = append_arguments(six.get_function_code(func), ('this','arguments'))
  File "f:\python\lib\site-packages\js2py\utils\injector.py", line 130, in append_arguments
    return types.CodeType(*args)
TypeError: an integer is required (got type bytes)

Add option to change the cache folder

Would be great to have the possibility to change the default path ~/.pipwin to whatever we want, maybe via CLI or using an env variable. Just this. 😉
Btw thx for this awesome tool.

Windows don't found pipwin

Hello, my windows don't found pipwin.

C:\Users\MeblIkea>pip install pipwin
Requirement already satisfied: pipwin in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (0.5.1)
Requirement already satisfied: js2py in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from pipwin) (0.71)
Requirement already satisfied: six in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from pipwin) (1.15.0)
Requirement already satisfied: pySmartDL>=1.3.1 in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from pipwin) (1.3.4)
Requirement already satisfied: packaging in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from pipwin) (20.8)
Requirement already satisfied: pyprind in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from pipwin) (2.11.3)
Requirement already satisfied: beautifulsoup4>=4.9.0 in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from pipwin) (4.10.0)
Requirement already satisfied: requests in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from pipwin) (2.25.1)
Requirement already satisfied: docopt in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from pipwin) (0.6.2)
Requirement already satisfied: soupsieve>1.2 in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from beautifulsoup4>=4.9.0->pipwin) (2.2.1)
Requirement already satisfied: pyjsparser>=2.5.1 in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from js2py->pipwin) (2.7.1)
Requirement already satisfied: tzlocal>=1.2 in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from js2py->pipwin) (3.0)
Requirement already satisfied: pyparsing>=2.0.2 in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from packaging->pipwin) (2.4.7)
Requirement already satisfied: idna<3,>=2.5 in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from requests->pipwin) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from requests->pipwin) (1.26.2)
Requirement already satisfied: chardet<5,>=3.0.2 in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from requests->pipwin) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from requests->pipwin) (2020.12.5)
Requirement already satisfied: tzdata in c:\users\meblikea\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from tzlocal>=1.2->js2py->pipwin) (2021.2.post0)

C:\Users\MeblIkea>pipwin
'pipwin' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

(Translation of the last lines:
'pipwin' is not recognized as an intern command or an external one, an executable program, or a command file.)

Thanks,

Libraries To Be Added

pandas-profiling
flask-whooshalchemy

I will Be Updating This Thread If I get Any Such Libraries Not Available through pipwin
I will be thankful if i am able to contribute something to my second most used tool in Command Line after pip

Thank You

Not working behind firewalls

As there is no command line options for --proxy or similar and the settings that pip uses are not picked up this tool will not work if you are behind a firewall that requires such settings.

[Issue] Bad import in robobrowser/browser.py

Hi there,
As of today, when I try to use pipwin there's an exception :

ImportError: cannot import name 'cached_property' from 'werkzeug' (D:\MYFOLDER\COURS\3eme_annee_ESIPE\Last Project\python-venv\lpp\lib\site-packages\werkzeug\__init__.py)

This exception is solved by changing this import :

from werkzeug import cached_property

By this import :

from werkzeug.utils import cached_property

In robobrowser/browser.py file line 8
Hope you'll fix this soon.

Here is my pull request on the robobrowser repository :
jmcarp/robobrowser#94

however robobrowser jmcarp repository seems to not be maintained anymore...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.