Reputation: 433
I installed python3.9 on windows 10. I created a virtual environment and installed all the packages i need for my program I then ran pyinstaller to create an executable and got the following error message: OSError: Python library not found: libpython39m.dll, python39.dll, libpython39.dll, libpython3.9.dll, libpython3.9m.dll
Do I need to install python to my virtual environment folder? I looked at other questions that are similar but didn't understand the solutions. I am very new creating exes.
Upvotes: 2
Views: 3335
Reputation: 1
Came across the same issue recently, managed to get it working with the following steps:
1 - Make sure you remove all installations of python you have installed over the windows AppStore and reinstall from here
2 - [ IMPORTANT - but an easy step to slip ] delete the virtual environment made with your previous python installation and re-install it (with all the required packages)
3 - create a new virtual env and install pyinstaller following -GConelhero's answer
Upvotes: 0
Reputation: 146
I had some problems with dependencies and PyInstaller some time ago, I solved it by installing Python 3.8.6 and PyInstaller through:
python.exe -m pip install --upgrade pip
python.exe -m pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
Upvotes: 3