![]() ![]() I also went to ~/python2.7/site-packages/ and ~/python3.6/dist-packages/, but there is no ortools module. USER_SITE: '/home/ros/.local/lib/python2.7/site-packages' (exists) '/usr/local/lib/python2.7/dist-packages', '/home/ros/.local/lib/python2.7/site-packages', Check whether python is installed or not in the sever where SDP is installed 2. For installing bs4, use the following command: pip install beautifulsoup4. Install them outside the VSCode and then import them into your program. Dont install packages through the VSCode terminal. '/opt/ros/melodic/lib/python2.7/dist-packages', Here we are listing the troubleshooting steps for the python script to be executed 1. Uninstall your Python and install it again. If anyone knows what it cause, help me please.Īfter I got comments, I ran python -m site ModuleNotFoundError: No module named 'ortools'įirst, I thought this is because PYTHONPATH, so did : export PYTHONPATH="./.local/lib/python2.7/site-packages/ortools" I've installed or-tools by python -m pip install -upgrade -user ortools and copied full script from the link, and added #!/usr/bin/env python3 and did chmod +x tsp.py.Īfter running the script, this error showed up: Traceback (most recent call last):įrom nstraint_solver import routing_enums_pb2 I'm trying to run this sample program from Google OR-Tools. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |