Skip to content
Advertisement

Why is mechanize not installing properly via pip on RPi? (python 3.9)

I can’t get to successfully install the package ‘mechanize’ on a Raspberry Pi (so, ARM chip) with Debian Bullseye, python 3.9 in a virtualenv.

When I look in the virtualenv’s sitepackages folder, indeed the mechanize package only has .dist-info file, but not a mechanize.py file or mechanize package folder. See below.

Question: Am I overlooking something?

Details (1): Installing mechanize with pip

JavaScript

Details (2): Package folder missing in sitelibs

JavaScript

Details (3): As a consequence, importing mechanize doesn’t work

JavaScript

Advertisement

Answer

It appears to be an issue with version 0.4.8. Installing version 0.4.7 works fine:

JavaScript

as can be seen:

JavaScript

I’ve opened a ticket at the mechanize github repository: https://github.com/python-mechanize/mechanize/issues/76

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement