Closed MarcelBeining closed 4 years ago
I think you need to update your setuptools to version 42.0.0.
Thanks @robertoea, that at least changed the error message :-D I then got the error that no wheel is available for my environment (Win Server 2008, Python 3.8). I then switched to Python 3.6 which finally did the job. However it would be cool if you could add a wheel for this configuration, so that I don't need to exclude this environment from the supported environments of my software :-)
Hi, I got the same error ,, after updating setuptools to 42.0.0 it ask me to install Build tools for visual studio then when finish installing I try to
pip install pycares
but got another error it says
"c:\users\big data lab\appdata\local\programs\python\python38\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory"
any solutive idea ??
Do you have the necessary build tools installed?
I think yes ,, I've installed microsoft visual studio because it required microsoft visual c++ 14.0 or later and that error I got after install VS
You might be missing Windows 10 SDK.
(If it takes too much effort to collect all build dependencies and you just want to use pycares, you might want to consider downloading prebuilt wheel somebody else already built, e.g. http://www.lfd.uci.edu/~gohlke/pythonlibs/)
Thanks @robertoea ,, I've tried to install prebuilt wheel and it has installed successfully. But is it the right/safe way to install?
As I said earlier, it’s probably better/easier for you to simply get the prebuilt wheel as the Windows 10 SDK might not be the only dependency you’re missing. I could build pycares just fine on my Windows 10 with python 3.8 so I think if you have all the dependencies it should work as well for you.
Functionally the prebuilt wheel should do equally fine. As for security, it’s a matter of trust. The one I linked earlier is pretty well known in the community so the risk isn’t too high for normal usage. Of course having anything prebuilt is not as “safe” as auditing and building everything yourself from source, but given that you seem to have difficulties in doing so yourself, I would argue that getting it prebuilt is a reasonable choice.
Pycares 3.1.0 is now availablw with wheels also for Python 3.8: https://pypi.org/project/pycares/3.1.0/#files
During installation I get the following error on Windows server 2008, python 3.8