Reputation: 106
When I run my packaged app I get the error ImportError: Missing required dependencies ['numpy']
. How do I fix this?
I used pyinstaller guiMain.py
to create the .exe, within a virtual environment created with pipenv shell
. This virtual environment has numpy 1.16.0
installed, aswell as pandas
, pyinstaller
, sklearn
, googleads
and pytest
.
When I run the code (unpackaged and within the virtual environment) everything works fine. The packaging process goes fine aswell, until I try to run the .exe, which gives the error above.
So far I have tried:
I thought the error might have been caused by the recent update to the googleads package (which caused an error with pyyaml version mismatch when locking the pipfile.lock
), but downgrading this package to 15.0.1 didn't resolve the numpy issue (it did resolve the pyyaml issue).
My Pipfile:
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
numpy = "*"
pandas = "*"
sklearn = "*"
pyinstaller = "*"
pytest = "*"
googleads = "==15.0.1"
[requires]
python_version = "3.6"
Any help is appreciated.
Upvotes: 1
Views: 2170
Reputation: 106
Apparrently the newest version of numpy (v1.16.0) breaks something in pyinstaller, because packaging the app with numpy version 1.15.4 works fine.
Upvotes: 6