-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does the install_python.sh install script not provide python
command?
#860
Comments
Can you please try and see if |
Yes |
So we have a possible bug report here that we should also install |
Perhaps the question has been answered, so may I close this? I think users can install them if they need to. If you really need it, I recommend that you install the version of your choice with uv at the time of your choice. |
You are the maintainer, it is your call what you install. I have been bitten myself in the past by wanting |
There seems to be no particular comment, so I'll close it. |
I think these days python pushes us to create a venv for all installs, which We can confirm:
so @Robinlovelace if you're not seeing this, it sounds like there may be some kind of PATH issue that also means you aren't accessing the venv but the /usr/python, which isn't ideal.... But I think we need more context to debug. |
Also more explicitly on the symlinks:
(aside but also note the staff permissions, a user in the staff group can write to the venv) |
Thanks @cboettig that's helpful, I went with
But wondering if that's necessary now... One thing I think could be worth doing in yours is something like this: # Set env variable so reticulat uses system installation of python:
ENV RETICULATE_PYTHON=/usr/bin/python3 Source: https://github.com/geocompx/docker/blob/master/rocker-rpy/Dockerfile |
Thanks @Robinlovelace and apologies I didn't explain well, it's not just a symlink question. First, it should not be necessary to set
Note that Setting On the symlink thing, this isn't just a matter of symlinks or aliases. Note that:
is NOT the same as
In the former,
Now you overwrite system packages and get his warning:
Long story short, we should be using the venv, and by default should be using the default venv. It sounds like this is not working for you as it should, and maybe we need to dig deeper? |
Thanks for the detailed response Carl, will aim to have a look and follow-up, may in a new issue on our issue tracker. Agreed, from what you said it seems that the things you do in |
Container image name
rocker/geospatial
Container image digest
No response
What operating system related to this question?
Linux
System information
No response
Question
I tried installing Python inside a Rocker container but found that the command
failed. See the test Dockerfile here: https://github.com/geocompx/docker/blob/8bdde78a1d9efcd66f194f37de74a5d5ed686649/rocker-r-py-julia/Dockerfile
And the cross-language project we're looking to support with an Docker container: https://github.com/Robinlovelace/cross_language_projects
The text was updated successfully, but these errors were encountered: