'How to solve a LNK 2001 and LNK 1120 error

I have a question on LNK errors. I've read several posts, but I'm still stuck. I have setup a virtual environment using Anaconda and downloaded the prefect server files from git here: https://github.com/PrefectHQ/Server

After activating my environment and installing prefect, I run pip install "prefect[dev]". Initially an error said I needed Microsoft Visual Studio and it provided a website to download visual studio build tools and the requirement was 14.0 or greater. I know little on C++, but the error was unresolved external symbol _PyUnicodeEscape. Can anyone help me out with this?

Creating library build\temp.win-amd64-3.10\Release\ast3/Custom_ast3.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\ast3/Custom_ast3.cp310-win_amd64.exp ast.obj : error LNK2001: unresolved external symbol _PyUnicode_DecodeUnicodeEscape build\lib.win-amd64-3.10\typed_ast_ast3.cp310-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe' failed with exit code 1120



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source