If you are using virtualenv you should use the “-p” or “–path=”D:…”” option. Like this:
pyinstaller.exe --onefile --paths=D:\env\Lib\site-packages .\foo.py
What this does is generates foo.spec file with this pathex path
More Related Contents:
- Windows- Pyinstaller Error “failed to execute script ” When App Clicked
- No module named ‘pandas._libs.tslibs.timedeltas’ in PyInstaller
- How to connect to a remote Windows machine to execute commands using python?
- Can Python select what network adapter when opening a socket?
- Processes stuck in loop with PyInstaller-executable
- Why python executable opens new window instance when function by multiprocessing module is called on windows
- Bundling Data files with PyInstaller 2.1 and MEIPASS error –onefile
- I can’t install pyaudio on Windows? How to solve “error: Microsoft Visual C++ 14.0 is required.”?
- How do you get a directory listing sorted by creation date in python?
- Determining application path in a Python EXE generated by pyInstaller
- How do I read text from the clipboard?
- How can I make an EXE file from a Python program? [duplicate]
- Jupyter Notebook with Python 3.8 – NotImplementedError
- How to add a custom CA Root certificate to the CA Store used by pip in Windows?
- How do I install pip on Windows?
- Errno 10061 : No connection could be made because the target machine actively refused it ( client – server )
- Why does Python’s multiprocessing module import __main__ when starting a new process on Windows?
- Cross-platform subprocess with hidden window
- How to get Windows’ special folders for currently logged-in user?
- Python virtualenv questions
- Windows 7: how to bring a window to the front no matter what other window has focus?
- Why does termcolor output control characters instead of colored text in the Windows console?
- Python and Windows Named Pipes
- What is the best way to map windows drives using Python?
- Get window position & size with python
- Get other running processes window sizes in Python
- Howto determine file owner on windows using python without pywin32
- Silent printing of a PDF in Python
- Cannot open “.mp4” video files using OpenCV 2.4.3, Python 2.7 in Windows 7 machine
- Export Charts from Excel as images using Python