what are python wheels? (intermediate - advanced) anthony explains

Поделиться
HTML-код
  • Опубликовано: 14 дек 2021
  • today I talk about wheels, what the filename means, how they're built, what the format looks like, and how to install them!
    - what is abi3: • making python releases...
    - what is manylinux: • what is manylinux? (in...
    playlist: • anthony explains
    ==========
    twitch: / anthonywritescode
    dicsord: / discord
    twitter: / codewithanthony
    github: github.com/asottile
    stream github: github.com/anthonywritescode
    I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
  • НаукаНаука

Комментарии • 28

  • @jeffz7310
    @jeffz7310 2 года назад +12

    Thank you for being the best Python explainer ever

    • @GameSmilexD
      @GameSmilexD 2 года назад +2

      generally people this good also dont share much content, thankfully he does

  • @AZIARGROUS
    @AZIARGROUS 2 года назад +2

    Awesome stuff as always, thanks you rock! A debatable (in usefulness) request: an intro to eggs and easy_install? They are all superseded now but they do still pop up from time to time

    • @anthonywritescode
      @anthonywritescode  2 года назад +3

      eggs and easy_install should really never be used any more

  • @dineshr93
    @dineshr93 2 года назад +2

    19:14 five different wheel paths that are mapped to different folders in env/pythonx path

  • @MurtagBY
    @MurtagBY Год назад

    thank you

  • @Seff2
    @Seff2 2 года назад +2

    So... Why do I need this? Isn't that the same als just installing stuff with pip?

  • @PouriyaJamshidi
    @PouriyaJamshidi 2 года назад +2

    Thanks!
    Maybe a short video on building wheels?

    • @anthonywritescode
      @anthonywritescode  2 года назад +2

      the problem is that tooling is quite a bit in flux right now -- there's both `pip wheel .` and `build ...` and `python setup.py bdist_wheel` -- if you check out the links in the video description I go over some of those

  • @antongorshenin1116
    @antongorshenin1116 2 года назад

    Thank you very much! Very good explanations! Second like for squishmellows on the back! :)

  • @JeroenLapre
    @JeroenLapre 2 года назад

    Thanks for helping demistifying python wheels!

  • @bennguyen1313
    @bennguyen1313 Год назад

    So if you install a python package from wheel or a windows installer, then it won't show up in pip show (or pip freeze) correct?
    I've been trying to find an older version of sip (wheel) that work with python 3.4 / PyQt 5.4.1.. as my application script runs fine, but the 32-bit exe built from it (nuitka) has the error : No module named 'sip'

    • @anthonywritescode
      @anthonywritescode  Год назад

      it shouldn't be any different from a wheel. I don't know anything about windows installers though

  • @mohamedelrefaiy
    @mohamedelrefaiy Год назад +1

    please how to fix that error
    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for pyarrow
    Failed to build pyarrow
    ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects

    • @musicforwork5461
      @musicforwork5461 Год назад

      You probably have sorted this out, I'd go onto stackoverflow next time, but there are a number of problems that could have caused this. I get this issue sometimes if I'm using the wrong version of python, or if something about the file doesn't work for macos, or isn't built for the new m1 chip or if there is a bug that requires a newer update than that listed in the requirements. First try a different version of the tool, then check the other factors if it still doesn't work.

  • @jeffz7310
    @jeffz7310 2 года назад +2

    Could you make a video about setting up real time linter in vscode for jupyter notebook? And maybe a general linter for other .py files too

    • @anthonywritescode
      @anthonywritescode  2 года назад +1

      I don't use vs code nor jupyter so I wouldn't really know what to speak about there -- as for python linters there's a few on that topic -- the best is probably my github universe talk: ruclips.net/video/97ONFvrFNB8/видео.html

    • @jeffz7310
      @jeffz7310 2 года назад +1

      @@anthonywritescode do you just use a text editor

    • @anthonywritescode
      @anthonywritescode  2 года назад +1

      yep -- I use my own text editor: github.com/asottile/babi

  • @magicsmoke0
    @magicsmoke0 Год назад

    I didn't see anything on generating the wheel files. is that in another video? Especially a more complicated one with multiple source files and directories.

    • @anthonywritescode
      @anthonywritescode  Год назад

      that's just python packaging -- not really related

    • @anthonywritescode
      @anthonywritescode  Год назад

      I have a bunch of packaging videos if you want to understand that portion

  • @ahmedifhaam7266
    @ahmedifhaam7266 2 года назад

    hang on, I thought python was the default implementation of python ? how is py actually different from cp again ?

  • @k98killer
    @k98killer 2 года назад

    A file with a self-referential hash is technically possible by parsing the file content and removing the line containing the self-referential hash, but that would be incompatible with other file hashing tools.

    • @anthonywritescode
      @anthonywritescode  2 года назад

      that wouldn't be a self-referential hash then

    • @k98killer
      @k98killer 2 года назад

      @@anthonywritescode it is a self-referential content hash, just with the line containing the hash excluded from the hashing operation. It's the closest thing you can get to it.

  • @brahimboughanam1662
    @brahimboughanam1662 Год назад

    thank you
    watching you at 03:30 am

  • @beto5720
    @beto5720 2 года назад

    You need to do a whole video of Monty Python references in python lol