4

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?

halfer
  • 19,824
  • 17
  • 99
  • 186
James Adams
  • 8,448
  • 21
  • 89
  • 148

2 Answers2

2

Following fixed it for me

pip install --upgrade --force-reinstall --no-cache-dir --ignore-installed pycurl==7.43.0.2
Ishan Bhatt
  • 9,287
  • 6
  • 23
  • 44
0

my solution as follow: just reinstall curl in your machine:

this link is very good, please Install curl From Source

J.Zhao
  • 2,250
  • 1
  • 14
  • 12