YouTokenToMe icon indicating copy to clipboard operation
YouTokenToMe copied to clipboard

Youtokentome cannot be installed on Windows if VisualStudio not installed

Open yilmazay74 opened this issue 1 year ago • 5 comments

Hi, I have a python app that needs youtokentome indirectly through internal dependencies. I have successfully installed and run it on my own Windows 10 machine. When I wanted to deploy it to AWS and thus, I have just created a windows server 2019 server instance on AWS. (by the way, Windows 10 option is not available) Except youtokentome all other libs successfully installed through pip install. However, youtokentome keeps throwing errors while installing. The error message is : _building 'youtokentome_cython' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

I have installed latest VC++ redist ver 14.32.31332.0, but it did not make any difference. So my questions are: 1- Is youtokentome not supported on Windows Server 2019? 2- Is there any workaround for this issue?

yilmazay74 avatar Jul 26 '22 15:07 yilmazay74

Hi, After seeing that installing VC++ redist.exe does not help, I installed Visual Studio 2022 with only Python Build Tools, and the problem went away. Now, my question is : is VS setup required in order to install (pip install) youtokentome? VS setup exe with just Python Build tools requires 1.9 GB space and takes around 20 minutes time, which is not very practical.

Any comments and suggestions about installing youtokentome without VS , will be pretty much appreciated. Thanks in advance

yilmazay74 avatar Jul 27 '22 07:07 yilmazay74

one workaround that I have discovered is to copy all site-packages including youtokentome into the target platforms site-packages directory, this way it worked. ( in case someone else encounters the same problem , s/he can use this workaround until someone fixes this issue)

yilmazay74 avatar Jul 28 '22 07:07 yilmazay74

at the end it turned out to be a general Wİndows problem, rather than being a Windows Server 20xx problem. So, I modified the title. The problem now is installing VC++ redist is not enough, also Visual Studio needs to be installed as well, in order to be able to install youtokentome on a Windows environment. I just wanted to update this topic.

yilmazay74 avatar Jul 29 '22 13:07 yilmazay74

i have the same issue

I installed Visual Studio 2022 with only Python Build Tools too , but i ve still the same issue. crazy.

HanshustlerHHHH avatar Apr 14 '23 21:04 HanshustlerHHHH

Is this repository not being maintained? It seems to have a lot of problems with dependencies, installations, and not being fixed at all for a long time.

hoonlight avatar Jul 08 '23 06:07 hoonlight