Install python packages offline without internet

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 49

  • @PaticadeTigre
    @PaticadeTigre Місяць тому +1

    Excelent video!!! Super useful and concise.

  • @riad4800
    @riad4800 Рік тому +5

    great, that is exactly what i am looking for !
    many thanks for this video

  • @narayanadhasojuraghavender1478
    @narayanadhasojuraghavender1478 2 місяці тому +1

    Very nicely explained.

  • @जयश्रीकृष्णा-ढ7न

    Great......!!!! Help me lot........!!! 🥰🥰

  • @Pupupiru-lh9qe
    @Pupupiru-lh9qe 7 місяців тому +1

    Wonderful video, I love it! You solved me a problem, thank you.

  • @brendancallaghan101
    @brendancallaghan101 3 місяці тому +1

    Awesome been looking for this solution for a long time. Its particularly useful for servers that have no internet connection because of security issues

    • @learningsoftwareskills
      @learningsoftwareskills  3 місяці тому

      @@brendancallaghan101 yes you are right, that is the perfect use case 👍

  • @vickytech4365
    @vickytech4365 Рік тому +3

    Thank you, I installed python packages in my Kali Linux (android) offline
    It works

  • @MK-vw3zb
    @MK-vw3zb 10 місяців тому +1

    Good explanation

  • @alejandrodiazfierro8301
    @alejandrodiazfierro8301 Рік тому +1

    Great video!

  • @mohammadhassanhojat7265
    @mohammadhassanhojat7265 2 місяці тому +1

    Perfect.

  • @Jacky-rc6mu
    @Jacky-rc6mu 8 місяців тому +5

    how can i do if i have a 'requirement.txt'

    • @learningsoftwareskills
      @learningsoftwareskills  8 місяців тому +3

      Hi, just write -r requirements.txt instead of the package name.
      Hope this helps, cheers 👍

  • @richardknipe2733
    @richardknipe2733 5 місяців тому +1

    You just made my day! Thank you!!!

  • @ajaypotdar7161
    @ajaypotdar7161 2 місяці тому +1

    Thanks for the info, It works great! I had a different question though, can I do the same with a conda environment? Perhaps a conda command equivalent to the pip command used here?

    • @learningsoftwareskills
      @learningsoftwareskills  2 місяці тому

      Hi, open spyder, and write pip commands with ! at the beginning
      Example: !pip install elasticsearch
      I think this should work
      Hope this helps, cheers 👍

  • @agnichatian
    @agnichatian 7 місяців тому +2

    Nice job; subbed ! I want to duplicate my current python package collection onto another, offline PC. So do you think it would be a valid approach to use pip freeze or pip list (or something better) to make a list of ALL of the packages. Then convert that to a requirements.txt. Then use that with the -r option on both steps of your procedure ?

  • @naresh.c2677
    @naresh.c2677 3 місяці тому +1

    Thanks very much boss it help me lot

  • @himanshuthakur2504
    @himanshuthakur2504 2 місяці тому +1

    Will the .whl created in windows work in linux server package installation?

    • @learningsoftwareskills
      @learningsoftwareskills  2 місяці тому

      I think it should work. If the python module is pure python code, it will work. If the package is compiled with platform specific code it will not work in Linux. Hope this helps, cheers 👍

  • @danielstewart7753
    @danielstewart7753 6 місяців тому +1

    The command you used in the video at 3:00 is not the same as what is shown in the blog post. In the video you put the library after "pip install" while in the post you put the library after the file path. Just FYI

  • @bennguyen1313
    @bennguyen1313 3 місяці тому +1

    Using the computer that's connected to the internet, is there a way to point it to the python package you want to install offline, have it check the dependencies that it's going to need... then download all the files for the offline computer to install?
    Also, if you have a script that imports a bunch of libraries that aren't actually used in the script.. is there a way to list only the actual libraries that are used?

    • @learningsoftwareskills
      @learningsoftwareskills  3 місяці тому

      @@bennguyen1313 I understand what you say. Even I too thought of it. I actually see all the python files and find the packages i need. I will try to figure out if there is an automated way for this

  • @zefur321
    @zefur321 2 місяці тому +1

    how to download and install all packages follow to python environment file?
    Remark: I want to clone my python enviroment from online pc to offline pc.

    • @learningsoftwareskills
      @learningsoftwareskills  2 місяці тому

      @@zefur321 Hi, just write -r requirements.txt instead of the package name while downloading the packages and installing the packages.
      Hope this helps, cheers 👍

  • @MrBahjon
    @MrBahjon 7 місяців тому +1

    Hello sir I want to ask how to install bsddb3 in python online or offline

    • @learningsoftwareskills
      @learningsoftwareskills  7 місяців тому

      Hi, you can use the command pip install bsddb3 or install the library offline using the procedure explained in the video.
      The link to the blog of this video is in the description
      Hope this helps, cheers 👍

  • @rubenagurcia906
    @rubenagurcia906 6 місяців тому +1

    'pip' is not recognized as an internal or external command,
    operable program or batch file.

    • @learningsoftwareskills
      @learningsoftwareskills  6 місяців тому

      You can write "python -m pip" instead of "pip"
      Hope this helps, cheers 👍

    • @peterpickslay2507
      @peterpickslay2507 6 місяців тому

      @@learningsoftwareskills I am having the same problem. Both "pip" and "python" are not recognized as a cmdlet, etc. I dont think the --no-index is working. Please help!

    • @learningsoftwareskills
      @learningsoftwareskills  6 місяців тому

      @@peterpickslay2507 Hi, add the python.exe folder path to the PATH system environment variable. Then python will be recognised as a command.
      Or else you can use the complete python path instead of just python in the command.
      Hope this helps, cheers👍

  • @riered9reda101
    @riered9reda101 3 місяці тому +1

    can we make pytorch offline too?

    • @learningsoftwareskills
      @learningsoftwareskills  3 місяці тому

      Hi, since pytorch is also a python package, I think you can make it also offline

    • @riered9reda101
      @riered9reda101 3 місяці тому

      @@learningsoftwareskills is there any detail tutorial about it? ive tried but always failed

  • @mohammedfaraaz5184
    @mohammedfaraaz5184 Рік тому +2

    but how to copy to other computer by using pendrive ?