Skip to content
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 is pip install called with --ignore-installed #3025

Closed
cpaulik opened this issue Aug 1, 2017 · 3 comments
Closed

Why is pip install called with --ignore-installed #3025

cpaulik opened this issue Aug 1, 2017 · 3 comments
Labels
Improvement Minor improvement to code

Comments

@cpaulik
Copy link

cpaulik commented Aug 1, 2017

This makes it hard to prepare an environment with conda and have pip packages with C dependencies in the requirements.txt

Details

Expected Result

pygrib should not be installed with pip since it is already installed via conda

Actual Result

pygrib installation failed because of missing system libraries for compiling the c code.

@cpaulik
Copy link
Author

cpaulik commented Aug 2, 2017

I worked around it by using python setup.py install instead.

@humitos humitos added the Improvement Minor improvement to code label Dec 26, 2017
@goerz
Copy link

goerz commented Apr 1, 2018

Using setup_py_install: true and pip_install: false in readthedocs.yml works, but it requires that the conda environment file lists all dependency packages that should be installed through pip. As an example:

name: py36
channels:
  - defaults
  - conda-forge
dependencies:
  - python=3.6
  - anaconda
  - pytest-cov
  - pytest-xdist
  - coverage
  - pip:
      - better-apidoc
      - trajectorydata
      - sphinx-autobuild
      - git+https://github.com/mabuchilab/QNET.git@develop#egg=QNET-2.0.0-dev

@agjohnson
Copy link
Contributor

This seems it can be closed. Our yaml config might soon have more options to configure these steps, but currently this case is a bit of an edge case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Minor improvement to code
Projects
None yet
Development

No branches or pull requests

4 participants