docker-pyinstaller icon indicating copy to clipboard operation
docker-pyinstaller copied to clipboard

Microsoft Visual C++ 14.0 is required

Open arossert opened this issue 4 years ago • 3 comments

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?

arossert avatar May 16 '20 12:05 arossert

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

wanyujiang avatar Sep 17 '20 13:09 wanyujiang

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

arossert avatar Sep 17 '20 14:09 arossert

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.

libra146 avatar May 24 '21 06:05 libra146