[Tutor] cannot install module with pip in venv
Mats Wichmann
mats at wichmann.us
Fri Aug 21 19:37:07 EDT 2020
On 8/21/20 11:35 AM, Anil Felipe Duggirala wrote:
> hello,
>
> I am trying to install modules in a requirements.txt list, and am
> getting the following error:
>
> https://pastebin.com/tSxwTwgg
>
> Modules setuptools and wheel appear to be installed already. I am trying
> to install these modules in a venv.
A little prospecting turns up some bad news (posted here as it might be
educational how to look this kind of thing up).
It looks like one of the packages isn't supported, in a couple of ways...
ERROR: Failed building wheel for electrumsv-secp256k1
A quick look on pypi.org
shows this intends to be a prepackaged build of said software, which
means it isn't expected to be trying to build a wheel in the first place.
"A vetted customised build of libsecp256k1 published as a Python package "
But it's old.. if you click to go to the files link on pypi:
https://pypi.org/project/electrumsv-secp256k1/#files
There are some wheels... Mac 3.6 and 3.7, 32-bit Linux 3.6 and 3.6, and
64-bit Linux 3.6 and 3.7, and some Windows . Since there isn't one for
Linux and 3.8 (no surprise, since there was no 3.8 back in March 2019),
that's why it falls back to trying to compile it from source.
DEPRECATION: Could not build wheels for electrumsv-secp256k1 which do
not use PEP 517. pip will fall back to legacy 'setup.py install' for
these. pip 21.0 will remove support for this functionality. A possible
replacement is to fix the wheel build issue reported above. You can find
discussion regarding this at https://github.com/pypa/pip/issues/8368.
Looks like the package is packaged against versions of the tools that
aren't current, and is using stuff which is about to go entirely obsolete.
ERROR: Command errored out with exit status 1:
command: /home/anilfd/pyvenvs/crypto/bin/python -u -c 'import sys,
setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-r7tuyssz/electrumsv-secp256k1/setup.py'"'"';
__file__='"'"'/tmp/pip-install-r7tuyssz/electrumsv-secp256k1/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
bdist_wheel -d /tmp/pip-wheel-u40re0sf
cwd: /tmp/pip-install-r7tuyssz/electrumsv-secp256k1/
:
Warning: 'keywords' should be a list, got type 'tuple'
That's frankly horrid looking... I've never seen that kind of construction.
In any case, the best advice for something like that is to contact the
project. There's a link on the pep page, but it doesn't look active.
Since you're using a virtualenv anyway, perhaps you could try one based
on Python 3.7?
More information about the Tutor
mailing list