Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install failing On Windows 10 - python 3.8.0 #24

Open
Benbbe opened this issue Nov 11, 2019 · 11 comments
Open

Install failing On Windows 10 - python 3.8.0 #24

Benbbe opened this issue Nov 11, 2019 · 11 comments

Comments

@Benbbe
Copy link

Benbbe commented Nov 11, 2019

Hello,
Install fails On Windows 10 - python 3.8.0 when trying to install pycld2

Collecting pycld2 Using cached https://files.pythonhosted.org/packages/21/d2/8b0def84a53c88d0eb27c67b05269fbd16ad68df8c78849e7b5d65e6aec 3/pycld2-0.41.tar.gz Installing collected packages: pycld2 Running setup.py install for pycld2 ... error ERROR: Command errored out with exit status 1: command: 'C:\dev\apps\python-3.8.0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\User s\\$$$$$\\AppData\\Local\\Temp\\pip-install-k2k97h5p\\pycld2\\setup.py'"'"'; __file__='"'"'C:\\Users\\$$$\\AppData \\Local\\Temp\\pip-install-k2k97h5p\\pycld2\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.re ad().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C: \Users\$$$\AppData\Local\Temp\pip-record-rv13nhfp\install-record.txt' --single-version-externally-managed --compile cwd: C:\Users\$$$\AppData\Local\Temp\pip-install-k2k97h5p\pycld2\ Complete output (10 lines): running install running build running build_py creating build creating build\lib.win32-3.8 creating build\lib.win32-3.8\pycld2 copying pycld2\__init__.py -> build\lib.win32-3.8\pycld2 running build_ext building 'pycld2._pycld2' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.micr osoft.com/downloads/ ---------------------------------------- ERROR: Command errored out with exit status 1: 'C:\dev\apps\python-3.8.0\python.exe' -u -c 'import sys, setuptools, toke nize; sys.argv[0] = '"'"'C:\\Users\\$$$\\AppData\\Local\\Temp\\pip-install-k2k97h5p\\pycld2\\setup.py'"'"'; __file__ ='"'"'C:\\Users\\$$$\\AppData\\Local\\Temp\\pip-install-k2k97h5p\\pycld2\\setup.py'"'"';f=getattr(tokenize, '"'"'ope n'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"' exec'"'"'))' install --record 'C:\Users\$$$\AppData\Local\Temp\pip-record-rv13nhfp\install-record.txt' --single-vers ion-externally-managed --compile Check the logs for full command output.

Regards

@bsolomon1124
Copy link
Contributor

bsolomon1124 commented Nov 11, 2019

From your error message:

extension error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/

Do you have that exec. available @Benbbe ?

@Benbbe
Copy link
Author

Benbbe commented Nov 11, 2019

Yes,
I have Microsoft Visual C++ 14.20.27508. (x86 and x64).
I have also older versions installed.
@bsolomon1124

@azeezsanya
Copy link

azeezsanya commented Feb 29, 2020

Hello,
Install fails On Windows 10 - python 3.8.0 when trying to install pycld2

Collecting pycld2 Using cached https://files.pythonhosted.org/packages/21/d2/8b0def84a53c88d0eb27c67b05269fbd16ad68df8c78849e7b5d65e6aec 3/pycld2-0.41.tar.gz Installing collected packages: pycld2 Running setup.py install for pycld2 ... error ERROR: Command errored out with exit status 1: command: 'C:\dev\apps\python-3.8.0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\User s\\$$$$$\\AppData\\Local\\Temp\\pip-install-k2k97h5p\\pycld2\\setup.py'"'"'; __file__='"'"'C:\\Users\\$$$\\AppData \\Local\\Temp\\pip-install-k2k97h5p\\pycld2\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.re ad().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C: \Users\$$$\AppData\Local\Temp\pip-record-rv13nhfp\install-record.txt' --single-version-externally-managed --compile cwd: C:\Users\$$$\AppData\Local\Temp\pip-install-k2k97h5p\pycld2\ Complete output (10 lines): running install running build running build_py creating build creating build\lib.win32-3.8 creating build\lib.win32-3.8\pycld2 copying pycld2\__init__.py -> build\lib.win32-3.8\pycld2 running build_ext building 'pycld2._pycld2' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.micr osoft.com/downloads/ ---------------------------------------- ERROR: Command errored out with exit status 1: 'C:\dev\apps\python-3.8.0\python.exe' -u -c 'import sys, setuptools, toke nize; sys.argv[0] = '"'"'C:\\Users\\$$$\\AppData\\Local\\Temp\\pip-install-k2k97h5p\\pycld2\\setup.py'"'"'; __file__ ='"'"'C:\\Users\\$$$\\AppData\\Local\\Temp\\pip-install-k2k97h5p\\pycld2\\setup.py'"'"';f=getattr(tokenize, '"'"'ope n'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"' exec'"'"'))' install --record 'C:\Users\$$$\AppData\Local\Temp\pip-record-rv13nhfp\install-record.txt' --single-vers ion-externally-managed --compile Check the logs for full command output.

Regards

@Benbbe I'm facing the same problem. DId find a solution?

@bsolomon1124
Copy link
Contributor

This looks similar to issues in other libraries such as statsmodels/statsmodels#4160, benfred/implicit#91, explosion/spaCy#741.

@bsolomon1124
Copy link
Contributor

I'm able to reproduce this:

docker run --rm -it python:windowsservercore-ltsc2016 powershell

Then:

PS C:\> py -3 -m pip --version
pip 20.0.2 from C:\Python\lib\site-packages\pip (python 3.8)
PS C:\> py -3 -m pip install pycld2
Collecting pycld2
  Downloading pycld2-0.41.tar.gz (41.4 MB)
     |????????????????????????????????| 41.4 MB 134 kB/s
Building wheels for collected packages: pycld2
  Building wheel for pycld2 (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\pip-install-7ikci4ue\\pycld2\\setup.py'"'"'; __file__='"'"'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\pip-install-7ikci4ue\\pycld2\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\ContainerAdministrator\AppData\Local\Temp\pip-wheel-jc5qr4yb'
       cwd: C:\Users\ContainerAdministrator\AppData\Local\Temp\pip-install-7ikci4ue\pycld2\
  Complete output (11 lines):
  The [wheel] section is deprecated. Use [bdist_wheel] instead.
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.8
  creating build\lib.win-amd64-3.8\pycld2
  copying pycld2\__init__.py -> build\lib.win-amd64-3.8\pycld2
  running build_ext
  building 'pycld2._pycld2' extension
  ----------------------------------------
  ERROR: Failed building wheel for pycld2
  Running setup.py clean for pycld2
Failed to build pycld2
Installing collected packages: pycld2
    Running setup.py install for pycld2 ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\pip-install-7ikci
ue\\pycld2\\setup.py'"'"'; __file__='"'"'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\pip-install-7ikci4ue\\pycld2\\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\ContainerAdmi4istrator\AppData\Local\Temp\pip-record-ayi_bxdw\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Python\Include\pycld2'             '         cwd: C:\Users\ContainerAdministrator\AppData\Local\Temp\pip-install-7ikci4ue\pycld2\                                                                              n    Complete output (10 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.8
    creating build\lib.win-amd64-3.8\pycld2
    copying pycld2\__init__.py -> build\lib.win-amd64-3.8\pycld2
    running build_ext
    building 'pycld2._pycld2' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ContainerAdministrator\\AppDat
\\Local\\Temp\\pip-install-7ikci4ue\\pycld2\\setup.py'"'"'; __file__='"'"'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\pip-install-7ikci4ue\\pycld2\\setup.py'"
"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' installa--record 'C:\Users\ContainerAdministrator\AppData\Local\Temp\pip-record-ayi_bxdw\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Py'hon\Include\pycld2' Check the logs for full command output.

As another answer suggested, upgrading setuptools did not work. (I don't have a clue why it would.)

@SuperPauly
Copy link

Anyone find a solution to this?

@PhilT
Copy link

PhilT commented Dec 17, 2020

I had a similar problem trying to install greenlet and pynvim.

If you use chocolatey this might work:

choco install visualcppbuildtools

If not, just download it from https://go.microsoft.com/fwlink/?LinkId=691126 (Direct download link)

@tefod-zz
Copy link

Me too - whatever I tried on windows - I failed.
I installed it by the inofficially binaries which i found here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/

No issues at all - working flawlessly.

@gertva
Copy link

gertva commented Jan 25, 2021

Me too - whatever I tried on windows - I failed.
I installed it by the inofficially binaries which i found here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/

No issues at all - working flawlessly.

@tefod-zz thanks for sharing this. it saved the day.

@TalhaUsuf
Copy link

Me too - whatever I tried on windows - I failed. I installed it by the inofficially binaries which i found here: https://www.lfd.uci.edu/~gohlke/pythonlibs/

No issues at all - working flawlessly.

thanks ❤️ it works

@Jun-jie-Huang
Copy link

Me too - whatever I tried on windows - I failed. I installed it by the inofficially binaries which i found here: https://www.lfd.uci.edu/~gohlke/pythonlibs/

No issues at all - working flawlessly.

It works for me! Big thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants