Unable to install Flask-Mongoengine

Ned Deily nad at python.org
Mon Dec 16 01:16:39 EST 2019


On 2019-12-15 03:13, Test Bot wrote:
> I am unable to install *Flask-Mongoengine* using pip. Here are my 
> specifications
> 
> 1. *OS* => OSX 10.14.6
> 2. *Python* => Python 3.8.0 (Working in a virtualenv)
> 3. *Dependency Manager* => pip(19.3.1), setuptools(42.0.2)
> 3. *Flask-Mongoengine* => flask-mongoengine==0.9.5
> 
> I am inside my virtualenv and trying to install flask-mongoengine using
> 
>     (env) $ pip install flask-mongoengine==0.9.5
> 
> 
> Here is my error
> 
>       distutils.errors.DistutilsError: Command
>     '['/Users/onlinejudge95/Workspace/GitHub/alma-serv/env/bin/python',
>     '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps',
>     '-w',
>     '/var/folders/r7/pgqw605n55x5f9018rp72hsm0000gn/T/tmpgrvp80jd',
>     '--quiet', 'rednose']' returned non-zero exit status 1.

You are running into an issue caused by a change in setuptools:

https://github.com/pypa/setuptools/issues/1934

It looks like the simplest solution is to first install the wheel
package in your venv:

pip install wheel
pip install flask-mongoengine==0.9.5

Either that or install a previous version of setuptools.  You may want 
to chime in on the discussion of that issue.





More information about the Python-list mailing list