Reputation: 8727
I have this error when I run tests on a conda environment which I built from specs in environment.yml
File "utils.py", line 5, in <module>
import pycurl
ImportError: pycurl: libcurl link-time version (7.29.0) is older than compile-time version (7.55.1)
The environment.yml file used to build the conda env:
name: indices_python
channels:
- defaults
- conda-forge
dependencies:
- coverage
- coveralls
- nco
- netcdf4
- nose
- numba
- numpy
- pandas
- pycurl
- pynco
- python=3
- scipy
The command I'm running (on Linux):
$ python -W ignore -m unittest tests/test_*.py
How can I fix this and/or how to prevent this from happening in the future?
Upvotes: 4
Views: 4372
Reputation: 2330
my solution as follow: just reinstall curl in your machine:
this link is very good, please Install curl From Source
Upvotes: 0
Reputation: 10231
Following fixed it for me
pip install --upgrade --force-reinstall --no-cache-dir --ignore-installed pycurl==7.43.0.2
Upvotes: 2