Problems installing a Django package

234 views
Skip to first unread message

durir...@gmail.com

unread,
Aug 11, 2015, 4:02:39 PM8/11/15
to Django users
I did the tutorial for reusable apps for Django. All went well... but then I get problems when installing the app.
Processing ./django-muro_humoristas/dist/django-muro_humoristas-1.tar.gz
  Requirement already satisfied (use --upgrade to upgrade): django-muro-humoristas==1 from file:///media/Comun/Programacion/Python/Django/Proyectos/muro_humoristas/django-muro_humoristas/dist/django-muro_humoristas-1.tar.gz in /home/rompepc/.local/lib/python3.2/site-packages
Building wheels for collected packages: django-muro-humoristas
  Running setup.py bdist_wheel for django-muro-humoristas
  Complete output from command /usr/bin/python3 -c "import setuptools;__file__='/tmp/pip-ip3iaz-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp3885trpip-wheel-:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help
  
  error: invalid command 'bdist_wheel'
  
  ----------------------------------------
  Failed building wheel for django-muro-humoristas
Failed to build django-muro-humoristas

Searching about the error, it looks like I just have to install wheel. However, when I run the command sudo pip install wheel (pip is installed under Python3):
Requirement already satisfied (use --upgrade to upgrade): wheel in /usr/local/lib/python3.2/dist-packages

So, seeing that I can just going, I retry the package install and... get the same error: "invalid command 'bdist_wheel'". Anyone could tell me what is going on? Is my first time doing a reusable app.

girish ramnani

unread,
Aug 12, 2015, 1:21:42 PM8/12/15
to Django users

Is wheel in latest version?
Also
 
your wheel package is installed in
wheel in /usr/local/lib/python3.2/dist-packages

but the
django-muro-humoristas
is being installed in

/home/rompepc/.local/lib/python3.2/site-packages

So have you activated a virtualenv ?

Also i tried to installed a package using wheel it went into
shiboken in /home/girish/anaconda3/lib/python3.4/site-packages

and location on wheel on my system is

wheel in /home/girish/anaconda3/lib/python3.4/site-packages
so as you can see they both are same.

you can try to install using
python -m pip install <package>

to remove the ambiguity of different pips used to install.



durir...@gmail.com

unread,
Aug 13, 2015, 7:27:03 AM8/13/15
to Django users
I use no virtualenv, to throw away solutions in that direction.. (didn't wanna to go hard first time).
pip is only installed in 3.2, so that wasn't the problem. I've solved the problem right now, but after an hour of trial and error, I think the only think was to do --upgrade wheel. Is was just the problem of that package. Maybe was broken when I installed it.

Thanks for the help!

Jani Tiainen

unread,
Aug 13, 2015, 8:07:36 AM8/13/15
to django...@googlegroups.com
Throwing away virtualenv is actually best way to get problems (unless you're working with solutions like docker or vagrant).

Virtualenv makes easy to check that you really do have only certain packages, certain versions and they won't generate any sudden surprises.

On Thu, 13 Aug 2015 04:27:02 -0700 (PDT)
durir...@gmail.com wrote:

> I use no virtualenv, to throw away solutions in that direction.. (didn't
> wanna to go hard first time).
> *pip* is only installed in 3.2, so that wasn't the problem. I've solved the
> problem right now, but after an hour of trial and error, I think the only
> think was to do *--upgrade wheel*. Is was just the problem of that package.
> >> Searching about the error, it looks like I just have to install *wheel*.
> >> However, when I run the command *sudo pip install wheel* (*pip* is
> >> installed under *Python3*):
> >> Requirement already satisfied (use --upgrade to upgrade): wheel in
> >> /usr/local/lib/python3.2/dist-packages
> >>
> >> So, seeing that I can just going, I retry the package install and... get
> >> the same error: "*invalid command 'bdist_wheel'"*. Anyone could tell me
> >> what is going on? Is my first time doing a reusable app.
> >>
> >>
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cff1f3fe-c0e0-4b0a-a135-ef87f70e0113%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


--
Jani Tiainen
Reply all
Reply to author
Forward
0 new messages