Python package Issue in Docker
-
Hi ModalAI Team,
I am creating Python scripts for ROS and within docker-kinetic on VOXL m500
I have a few questions.
I am installing some python packages such as pandas, opcua etc. I am installing them in roskinetic directory with following command:
python2.7 -m pip install pandas
Some packages were installed and worked just fine but I cannot install pandas. It gives the following error:

I searched on the internet and it seems like its a problem with Python version.
1) At this point, what would you recommend to fix it?
2) I would like confirm if i am installing to the right place (roskinetic directory in docker)
3) After I power off and on, the Python packages, I installed, goes away and I need to install again. So, Should I run "docker commit" to save? or what am I doing wrong?
I am quite new to the Docker system, I would be so happy to get any help in this topic.
thank you in advance!
Ayberk -
You should build up your Docker images with a Dockerfile and 'docker build'. However, if you make changes in the container that you want to keep then, yes, you can use 'docker commit'. There is a lot of good documentation on the Docker site about all of this.
-
You should build up your Docker images with a Dockerfile and 'docker build'. However, if you make changes in the container that you want to keep then, yes, you can use 'docker commit'. There is a lot of good documentation on the Docker site about all of this.
@Eric-Katzfey Thank you so much for your answer!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login