How to turn a package into something pip can install

Chris “Kwpolska” Warrick kwpolska at gmail.com
Sun Feb 16 13:18:12 CET 2014


On Sat, Feb 15, 2014 at 11:35 PM, Roy Smith <roy at panix.com> wrote:
> In article <roy-8299B9.17014115022014 at news.panix.com>,
>  Roy Smith <roy at panix.com> wrote:
>
>> > > $ pip install --no-index --quiet --find-links packages metar==1.4.0
>> > [snip]
>> > > ValueError: unknown url type: packages
>> >
>> > The path to your cache directory is incorrect.  I suggest using
>> > absolute paths (eg. /home/user/packages) instead of relative paths,
>> > which is likely what caused this issue.
>>
>> No, that's not it.  It doesn't work with an absolute path either.
>
> OK, I figured this out.  The on-line docs
> (http://www.pip-installer.org/en/latest/reference/pip_wheel.html) say
> you can give --find-links a path, but it looks like it insists on it
> being a valid URL.  If I prepend "file:" to the absolute path, it works.
>
> Maybe this is something which has changed in newer versions of pip?
> I've got 1.1 (and python 2.7.3).  I'm pretty sure both of these are what
> came with Ubuntu Precise.
> --
> https://mail.python.org/mailman/listinfo/python-list

It’s heavily outdated, and that IS the cause of your problem.  pip 1.5
accepts such paths just fine.  Please upgrade your pip.

-- 
Chris “Kwpolska” Warrick <http://kwpolska.tk>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense



More information about the Python-list mailing list