-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
conda env creation fails if Python 3 selected #1901
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
Comments
+1 ing. Same issue. |
Wouldn't it be easier to simply provide a RTD-specific environment.yml file, which should include all RTD requirements and possibly a RTD-channel that includes those packages for all (relevant) Python versions. Then creating the environment for RTD and the package can be done in one fell swoop and these issues would be prevented. |
You should be able to specify the proper python version in the |
I'd like it to remain possible to specify |
So, there are few ways to fix this.
1 is trivial. I am not sure what constraints there are on RTD, but I would like to think 2 is doable. 3 may have issues. I think I use to have issues doing this so there may still be some. 4 is a reasonable workaround. |
I just pushed #1947 which I believe will fix this. This creates the initial environment with the environment file, but without specifying any other packages. I believe this means it will depend on you specifying the correct Python environment in your conda environment file, but that seems like a better approach than what we currently have. Thoughts? |
I put this in
readthedocs.yml
:It creates a conda env with Python 3.5, and then tries to install the standard docs machinery. But docutils is pinned to 0.11, and there isn't a build of this for Python 3.5 (there is a package of docutils 0.12). So I see this failure:
The obvious solution is not to pin docutils so it automatically picks the latest version available. If you prefer to keep it pinned, I think that installing dependencies at the same time as you create the environment should work; in this instance, it would fall back to Python 3.4 so it could satisfy the dependencies:
The text was updated successfully, but these errors were encountered: