I am trying to install the Python package numpy from the a .whl file. This answer provides the syntax for using pip/wheel to install a package:
pip install --use-wheel --no-index --find-links=/where/its/downloaded package_name
So after downloading the .whl file and renaming it numpy.whl
I followed this syntax accordingly:
cd C:\Python27\Scripts
pip install --use-wheel --no-index --find-links=C:\Users\User Name\Downloads numpy
When I do this I get
Ignoring indexes: https://pypi.python.org/simple
Exception:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip\basecommand.py", line 232, in main
status = self.run(options, args)
File "C:\Python27\lib\site-packages\pip\commands\install.py", line 305, in run
name, None, isolated=options.isolated_mode,
File "C:\Python27\lib\site-packages\pip\req\req_install.py", line 181, in from
_line
isolated=isolated)
File "C:\Python27\lib\site-packages\pip\req\req_install.py", line 54, in __ini
t__
req = pkg_resources.Requirement.parse(req)
File "C:\Python27\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", li
ne 2873, in parse
reqs = list(parse_requirements(s))
File "C:\Python27\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", li
ne 2820, in parse_requirements
"version spec")
File "C:\Python27\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", li
ne 2785, in scan_list
raise ValueError(msg, line, "at", line[p:])
ValueError: ('Expected version spec in', 'Name\\Downloads', 'at', '\\Downloads
')
I downloaded the numpy‑1.9.2+mkl‑cp27‑none‑win_amd64.whl
file and am running Python 2.7 on 64bit architecture so I don't think the version I downloaded is the problem. The other issue I can think of is that the syntax in the original answer is written linux and I cannot find an example that deals with Windows directories. The other issue could be that my User Name
is two words with a space in it that Wheel is not set up to handle. I tried adding /
in front of the space in case that was the problem, but no dice. How can I install a Python package on Windows using a .whl file?