Giter VIP home page Giter VIP logo

Comments (3)

decalage2 avatar decalage2 commented on August 16, 2024

Indeed a normal pip installation will not work offline, because it needs to download a number of dependencies (listed in requirements.txt and setup.py).
To install offline, you need to get every dependency first, and then install them one by one in the correct order, with oletools at the end. This would need to be added to the documentation.

from oletools.

testtomat avatar testtomat commented on August 16, 2024

Okay, thanks.

Is this the only way or is it possible to make a Copy 'n Paste deployment of all installed packages from a development machine to a production machine?
Sorry, I'm a C#-developer and not familar with Python environment.

from oletools.

decalage2 avatar decalage2 commented on August 16, 2024

In theory yes, you could copy the site-packages directory where Python stores all external packages, assuming you have the same python version on both machines.
But you need to pay attention how external packages have been installed in the first place:

  • if packages were installed as root/administrator, they should be in the global site-packages directory of the python interpreter. (this is the easiest solution but not recommended on modern Linux distributions)
  • if they were installed as a non-admin user, they may be in a site-packages directory in the user's profile.
  • and they can also be installed in a virtual environment, which is located in a dedicated directory to avoid dependency conflicts with the system.

More info: https://www.quora.com/How-can-I-copy-the-Python-folder-with-all-its-libraries-and-modules-from-one-computer-to-another

But all in all, I would recommend to download all dependencies locally and install them with pip (with a script, to automate things). It's probably a bit more work, but it would avoid any install glitches.

from oletools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.