carla: make PythonAPI does not work on Windows 10
Hello there,
My lab members and I have been stuck on this for many days already.
We are trying to build Carla on Windows 10 machines, and the CarlaUE4 actually runs ok. make launch
works perfectly, and Unreal is working, and we can play it. However, when trying to make the PythonAPI, make PythonAPI
, we have encountered many issues.
It is telling me Carla lib has been successfully installed but it is showing tons of linker errors. And I don’t see any dist
files been generated.
And I therefore could not run the example python scripts.
- I am using the
x64 Native Tools Command Prompt for VS 2017
- I have
Desktop Development with C++
&&Windows 8.1 SDK
checked - I am using ```Python 3.7.6``
Does anyone have encountered similar situations before? Please advise what should I do next.
Thank you very much.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 16 (1 by maintainers)
Hi @xuyanwen2012 , I faced the same problem and managed to get around it. After compiling Carla client and server, instead of “make PythonAPI”, I did:
cd PythonAPI/carla python setup.py install
This generated the /dist folder and the “.egg” file within. I am able to run the .py examples now. Hope this helps in your case.
Hi, I faced a similar issue recently, i solved the issue my opening the command prompt x64 Native Tools Command Prompt for VS 2017 with admin rights and followed steps mention in comment from @carfloresp ( path to carla\PythonAPI\carla and run python setup.py install)
Not yet, I am temporary getting around with this by switching to Linux (WSL). Although WSL have other issues that does not let me to launch the UE4editor, but at least the
make PythonAPI
can work. So I had my server running on Windows and the client running in WSL (kinda sucks, but at least it works).