GithubHelp home page GithubHelp logo

pyinstaller's Introduction

How to use pyinstaller with external libraries?

This repo is just to keep track of all steps I took to get the pyinstaller properly work with external libraries

1. Video to get general overview

Generally whit this video is enough: https://www.youtube.com/watch?v=UZX5kH72Yx4

However, if you need to import external libraries (pip install list),pyinstaller will through the following error: NameError: name '####library name####' is not defined

2.¿Cómo hacer para que pandas entre en pyinstaller?

2.1. Faltan librerías en python en consola

Ejecuta archivo .py desde cmd Ejecuta tu python script desde el comand line (cmd). Para ello, abre el CMD, vete a la ruta donde tengas el .py. Ejecuta como "python _______.py" Si te sale error de que library not found o algo así, hay que installar las librerias en python con: python -m pip install pandas Itera hasta que todas las librerias estén instaladas.

2.2. Error-->ModuleNotFoundError: No module named 'sklearn.utils._cython_blas'

Si a pesar de haber instalado una librería (pandas por ejemplo) pyinstaller sigue sin reconocerla, toca modificar los archivos de hook_pandas o la librería que sea dentro de pyinstaller. Vete a tu ruta de python, similar a esta:(c:/~/Python3.6/Lib/site-package/PyInstaller/hooks), Busca hook-pandas.py Introduce en la sección "hiddenimports" lo siguiente: hiddenimports = ['pandas._libs.tslibs.timedeltas','pandas._libs.tslibs.nattype','pandas._libs.tslibs.np_datetime','pandas._libs.skiplist']

Other libraries hook files modifications:

pyinstaller's People

Contributors

breoganpardo avatar

Watchers

 avatar

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.