Fabien Tarrade
2018-10-06 07:02:13 UTC
Hello everybody,
because I don't have Internet access from a Linux server and not I am
not authorized to use Docker image on this Linux server, I am using the
following steps:
- create a Docker image to mimic the characteristic of my server
- create a conda env with all the ML and DL packages I need
- zip the sub folder that contain my enc: /opt/conda/envs/my_env
- coping the env folder on the Linux server under /home/xxx/.conda/envs/
I am using such receipt since more than a year and it is working fine.
If you want to see the detail you can look at my GitHub dir:
(https://github.com/tarrade/proj_docker_images_ML)
The only issue I have is when I want to start Jupyter from the env.
It seems that the shebang |#!| statement of the conda script is
hardcoded (path from the creation of the original env with Docker).
I see the following:
more */home/xxx/.conda/envs/my_env/bin/jupyter*
#!*/opt/conda/*envs/docker_env/bin/python
To have jupyter working from the env I need to do do the following
modification
more */home/xxx/.conda/envs/my_env/bin/jupyter*
#!*/home/xxx/.conda*/envs/env_affinity/bin/python
 Is there some command with conda that will check and fix such path ?
It is easy to do it on my side but is there shebang |#!| statement of
the conda script that need to be fixed as well when copying conda env
from a machine to another machine ?
 (I fixed this issue by looking at the following Stackoverflow thread:
https://stackoverflow.com/questions/39884499/conda-command-will-prompt-error-bad-interpreter-no-such-file-or-directory/39884767)
Thanks a lot
Cheers
Fabien
--
Dr. Fabien Tarrade
Senior Data Scientist at AXA
<https://www.facebook.com/fabien.tarrade.eu>
I am a senior Data Scientist at AXA with the mission of helping AXA
becoming a data driven organisation by using advanced analytics and Big
Data.
I have over 10 years of experience in management of large projects,
processing, modelling and statistical treatment of large volume of
experimental data
up to 10 petabytes as well as the development and maintenance of
advanced and complex computer programs.
Zurich, Switzerland
Email : ***@fabien-tarrade.eu <mailto:***@fabien-tarrade.eu>
Phone : www.fabien-tarrade.eu <http://www.fabien-tarrade.eu>
LinkedIn <http://ch.linkedin.com/in/fabientarrade/> Twitter
<https://twitter.com/fabtar> Google
<https://plus.google.com/+FabienTarradeProfile/posts> Facebook
<https://www.facebook.com/fabien.tarrade.eu> Google
<skype:fabtarhiggs?call> Xing <https://www.xing.com/profile/Fabien_Tarrade>
because I don't have Internet access from a Linux server and not I am
not authorized to use Docker image on this Linux server, I am using the
following steps:
- create a Docker image to mimic the characteristic of my server
- create a conda env with all the ML and DL packages I need
- zip the sub folder that contain my enc: /opt/conda/envs/my_env
- coping the env folder on the Linux server under /home/xxx/.conda/envs/
I am using such receipt since more than a year and it is working fine.
If you want to see the detail you can look at my GitHub dir:
(https://github.com/tarrade/proj_docker_images_ML)
The only issue I have is when I want to start Jupyter from the env.
It seems that the shebang |#!| statement of the conda script is
hardcoded (path from the creation of the original env with Docker).
I see the following:
more */home/xxx/.conda/envs/my_env/bin/jupyter*
#!*/opt/conda/*envs/docker_env/bin/python
To have jupyter working from the env I need to do do the following
modification
more */home/xxx/.conda/envs/my_env/bin/jupyter*
#!*/home/xxx/.conda*/envs/env_affinity/bin/python
 Is there some command with conda that will check and fix such path ?
It is easy to do it on my side but is there shebang |#!| statement of
the conda script that need to be fixed as well when copying conda env
from a machine to another machine ?
 (I fixed this issue by looking at the following Stackoverflow thread:
https://stackoverflow.com/questions/39884499/conda-command-will-prompt-error-bad-interpreter-no-such-file-or-directory/39884767)
Thanks a lot
Cheers
Fabien
--
Dr. Fabien Tarrade
Senior Data Scientist at AXA
<https://www.facebook.com/fabien.tarrade.eu>
I am a senior Data Scientist at AXA with the mission of helping AXA
becoming a data driven organisation by using advanced analytics and Big
Data.
I have over 10 years of experience in management of large projects,
processing, modelling and statistical treatment of large volume of
experimental data
up to 10 petabytes as well as the development and maintenance of
advanced and complex computer programs.
Zurich, Switzerland
Email : ***@fabien-tarrade.eu <mailto:***@fabien-tarrade.eu>
Phone : www.fabien-tarrade.eu <http://www.fabien-tarrade.eu>
LinkedIn <http://ch.linkedin.com/in/fabientarrade/> Twitter
<https://twitter.com/fabtar> Google
<https://plus.google.com/+FabienTarradeProfile/posts> Facebook
<https://www.facebook.com/fabien.tarrade.eu> Google
<skype:fabtarhiggs?call> Xing <https://www.xing.com/profile/Fabien_Tarrade>
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/bcb7859f-7425-36a2-2f89-f41fb5afebb8%40gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/bcb7859f-7425-36a2-2f89-f41fb5afebb8%40gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.