qubodup
qubodup

Reputation: 9633

How to modify package before installing it with pip

Trying to install a package on Windows fails, as it requires a site.cfg file to contain the path of a library.

It looks like pip extracts packages to c:\users\[username]\appdata\local\temp\pip-install-[random string]\ during installation and deletes after installation (successful or not), so I can't "hot-edit" it.

Can I make pip wait for me before installing?

Can I make pip download and unpack the package and afterwards tell it to install a package from a directory rather than a package name or URL?

Feel free to comment alternative solutions for installing scikits.audiolab on Windows (demands sndfile to be defined in site.cfg).

Upvotes: 0

Views: 1403

Answers (1)

Corentin Limier
Corentin Limier

Reputation: 5006

Does not work on wheels (see @hoefling comment)

  • Download package from url (pip tells you the url when you do pip install <package_name>)

  • Untar the file and do your modifications

  • Then do pip install <path_of_package>

Upvotes: 1

Related Questions