Closed PinkJohnOfUs closed 2 years ago
Hi @PinkJohnOfUs,
You require pip
version 20.3 or above to install the CARLA Python package. You can upgrade pip
in the following way:
pip install --upgrade pip
If you want to install the python package for CARLA 0.9.12, you should specify the version (currently, the latest version of CARLA is 0.9.13):
pip install carla==0.9.12
Thank you that solved my issue. For all who do have the same problem with ros:foxy-ros-base you should do pip upgrade within dockerfile, it wasn't possible for me to upgrade pip within running container.
pip install carla==0.9.12
ERROR: Could not find a version that satisfies the requirement carla==0.9.12 (from versions: 0.9.5)
ERROR: No matching distribution found for carla==0.9.12
pip install carla==0.9.12 ERROR: Could not find a version that satisfies the requirement carla==0.9.12 (from versions: 0.9.5) ERROR: No matching distribution found for carla==0.9.12
I have the same problem. Have you got a solution yet?
I have the same version of ubuntu and python, and the error message. I solved it by this:
sudo apt install python=3.7
sudo gedit ~/.bashrc
Add this in the last line: alias python3='/usr/bin/python3.7'
source ~/.bashrc
Then try
pip install carla
Problem you have experienced: Not possible to install carla python package for python3.8 on docker container
What you expected to happen: installation should work with:
pip install carla
CARLA version: 9.12 Platform/OS: Ubuntu 20.04.3 LTS -> docker container -> ros:foxy-ros-base IMAGE ID: 62ee1d4d17a9
docker run --name ros-bridge-container -it ros:foxy-ros-base /bin/bash
Inside container
python version:
Steps to reproduce:
I do not understand why pip tries to download 0.9.5 and not 0.9.12 or 13
Other information (documentation you consulted, workarounds you tried): I've also downloaded wheel directly and tried:
From host pc (linux ubuntu 20.04) installing carla is no problem: