-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Which install flags should pip use? #5545
Comments
Possible flags to consider:
|
For my case, I think no flags would be sufficient:
However, an approach that might be a better approximation of what we have now could be to use
|
Thanks for digging in to this! I read the thread and seems that a solution is downgrading pip pypa/pip#5247 (comment) So, maybe you can install that version of pip from conda? Another option will be having a requirements.txt installed with that version of pip https://docs.readthedocs.io/en/stable/config-file/v2.html#python-install Sadly, we don't support installing requirements when using conda :/ #2776 |
This is an attempt to solve the problem described in readthedocs/readthedocs.org#5545.
I had the same problem with this conda:
file: doc/readthedocs-environment.yml
python:
pip_install: true This is the error log: https://readthedocs.org/projects/nbsphinx/builds/8920771/ It worked again when I changed to python:
setup_py_install: true |
Is this fixed with #5635? |
For me yes, its working fine now. As I mention in the PR, perhaps a more comprehensive solution may be to include additional options in the |
Should be ok in terms of this issue, but if somebody else has a similar issue, I would recommend them to comment on this issue to evaluate if further changes are needed 👍 |
@agjohnson any thoughts here? I'm closing this one, but if needed we should open a new one proposing to use the config file to define what flags to use in pip. Kind of related with #3986 |
After #5386, I've had some issues when installing my project with
pip
on top of a conda environment. The error messages frompip
that I'm seeing are along the lines of this:This is caused by the following conditions:
--force-install
flag to pip causes all dependencies to be reinstalled as well.It is not necessarily clear why the
--force-install
/--ignore-installed
flag was there initially (see comments in #5386), but it might be an issue of caching or other optimizations.A possible solution to this would be to expose some configuration options which determines which flag(s) to use, if any, but I'm not sure what the threshold is for adding options to the configuration?
The text was updated successfully, but these errors were encountered: