cdrx / docker-pyinstaller

PyInstaller for Linux and Windows inside Docker
MIT License
616 stars 238 forks source link

Microsoft Visual C++ 14.0 is required #93

Open arossert opened 4 years ago

arossert commented 4 years ago

I'm trying to install pcapy module that needs compilation and I'm getting this error:

Installing collected packages: pcapy
    Running setup.py install for pcapy ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\Python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\users\\root\\Temp\\pip-install-cb7a8mfd\\pcapy\\setup.py'"'"'; __file__='"'"'C:\\users\\root\\Temp\\pip-install-cb7a8mfd\\pcapy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\users\root\Temp\pip-record-37_jainp\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\Python37\Include\pcapy'
         cwd: C:\users\root\Temp\pip-install-cb7a8mfd\pcapy\
    Complete output (5 lines):
    running install
    running build
    running build_ext
    building 'pcapy' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------

I have tried to install it manually but with no success, can this be done?

wanyujiang commented 3 years ago

I have the same question with you, did you solve the problem?

arossert commented 3 years ago

Unfortunately I couldn’t solve it. I just pre-complied the problematic modules and uploaded them to internal PYPI repo.

libra146 commented 3 years ago

run docker run -v "$(pwd):/src/" --rm -it --entrypoint /bin/bash cdrx/pyinstaller-windows:python3 -c "python -m pip install --upgrade pip && /entrypoint.sh" to update pip,then I solved the problem.