Python Forum
How to create local copies of Python packages so they do not have to be downloaded
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create local copies of Python packages so they do not have to be downloaded
#1
So basically there are issues with proxy server at work. They are quite persistent. One way around this is, to download the important packages once and then store them into a repository on our own internal network.

I know that Python Wheels has replaced Python Eggs and is the the format to distribute compiled packages rather than packages in the form of source code as happens with stdist. I am aware that it is possible to download a package from Pypi and then save it as a wheels package on the computer.

What I don't know is how to do this, and once I have the "wheels" file for a package with their really long names, which I expect is one solitary file per package, how do install it into python or the virtualenv using pip.

Any help is appreciated.
Reply
#2
check https://packaging.python.org/guides/host...own-index/

that is if you want to host your own repository


if you just want to install local whl file

pip install path/to/file.whl
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
The hosting shall be done on my work place version control system. So the question is, is my understanding correct? Also, how do I create a Wheel for a package on Pypi?
Reply
#4
(Sep-29-2020, 02:06 PM)okhajut Wrote: The hosting shall be done on my work place version control system.
You can host your own pypi - two alternatives are described in the link I shared

(Sep-29-2020, 02:06 PM)okhajut Wrote: Also, how do I create a Wheel for a package on Pypi?
you want to package your own code into whl file or what?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Downloaded file corrupted emont 5 820 Oct-01-2023, 11:32 AM
Last Post: snippsat
  Installing python packages in a virtual environment Led_Zeppelin 1 758 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 829 Jul-15-2023, 11:32 AM
Last Post: snippsat
  I downloaded a script and I cant run this luoxr18 3 1,195 Apr-16-2023, 09:33 AM
Last Post: Larz60+
  Python script with local libraries zazas321 0 967 Jul-05-2022, 04:55 AM
Last Post: zazas321
  class - calculate total price of copies 3lnyn0 1 1,554 Dec-12-2021, 11:43 PM
Last Post: BashBedlam
  python interpreter won't import packages greenpy 1 1,968 Sep-11-2020, 07:47 PM
Last Post: buran
  Conversion of Oracle PL/SQL(packages, functions, procedures) to python modules. DivyaKumar 2 6,489 Jul-09-2020, 04:46 PM
Last Post: srikanth7482
  site packages, python 3.8 Dixon 12 6,427 Feb-01-2020, 05:32 PM
Last Post: Dixon
  How to create an environment for program downloaded from github StartedNewLife 3 2,170 Jan-25-2020, 06:34 PM
Last Post: ibreeden

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020