Python Forum

Full Version: Installing pefile from local folder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm relatively new to python code, but experienced in several others.

I'm trying to get PyInstaller up and going, stepping through the various dependencies and came upon 'pefile' I found the project for it (https://pypi.org/project/pefile/), and because of the network restrictions I am working in, I can't simply 'pip install pefile' as I would like to.

I am required to download the gz file and unpack it to a folder, then install it.

Dodgy

The difficulty I am encountering is that even when I get the install started with the setup.py file associated with the package, it still attempts to reach out to the net to download items. This is of course blocked. Cry

I've combed the internet looking for some procedure to install pefile from a folder, but have only found the standard method to install it. Therefore I'm looking for assistance on how to go about this from someone more experienced in Python.

My Python version is 3.6 and I'm working on Windows 10 32 bit.

Thanks for any guidance you can offer.

Kip...
if you can figure out what the dependencies are, (often shown on github page, can also look at source code ans see what's being imported) you can install those first, in the same manner from source. Then when you install the higher level software, it will see the installed packages and bypass attempted download.

But a simpler method is to see if you can find wheels, download those and install them using pip
(Jan-09-2020, 04:28 AM)Larz60+ Wrote: [ -> ]But a simpler method is to see if you can find wheels, download those and install them using pip

Agreed. I have looked high and low for a whl file to do the install of PyInstaller. However, you have given me an idea!

If I look at the setup file for PyInstaller and document dependencies (assuming they are not documented elsewhere on the web); I might be able to identify other packages that do have wheel files and share similar dependencies. Installing those would circumvent the need for the install to download other includes.

Let me take a shot at that.
Thanks!
Kip...
As a follow up...

From another thread, I was directed to the Python Extension Packages for Windows website. Which had both the pefile and future extensions that were needed to complete my PyInstaller configuration.

Many thanks to buran for pointing out the resouce.

Kip...
I actually missed your original thread somehow :-) Thanks for the follow-up here