Can't install pycurl with pip

前端 未结 7 586
走了就别回头了
走了就别回头了 2021-01-11 11:57

Can\'t install pycurl with pip, win xp x32, python 2.7.

here is the log

pip install pycurl
Downloading/unpacking pycurl
  Downloading pycurl-7.19.3.1         


        
相关标签:
7条回答
  • 2021-01-11 12:34

    This is a problem indeed. No need to update pip or easy install as it's often advised, well it won't hurt to update but you will still have the problem until you :

    1. install libcurl4-gnutls-dev librtmp-dev packages
    2. pip install pycurl

    Worked the same in Linux

    0 讨论(0)
  • 2021-01-11 12:34

    install pycurl using conda, conda will install all dependencies, Hope it works

    conda install -c anaconda pycurl

    0 讨论(0)
  • 2021-01-11 12:35

    So has said by Hai Vu you need to install cURL first. Here is the dowload page : http://curl.haxx.se/download.html I suggest you install it in your C:/ directory, or if you already installed it elsewhere copye the curl.exe file to your c:/

    When done, you can try it by going to the cmd prompt :

    cd c:/
    curl "your-curl-request"
    

    If it works then curl is correctly installed and you can install pycurl with pip.

    0 讨论(0)
  • 2021-01-11 12:36

    Following the steps one mentioned above, solved my problem.

    sudo apt install libcurl4-gnutls-dev librtmp-dev
    
    pip install pycurl
    
    0 讨论(0)
  • 2021-01-11 12:36

    Here are easy steps I did to get around this:

    1. Download the wheel of the version you want here: https://www.lfd.uci.edu/~gohlke/pythonlibs/

    2. then you can pip install that like so:

      pip install C:\sample\sample_dir\whl_file_downloaded

    You should know be able to import in your python files

    0 讨论(0)
  • 2021-01-11 12:38

    steps to follow :

    1. brew install openssl

    2. PYCURL_SSL_LIBRARY=openssl LDFLAGS="-L/usr/local/opt/openssl/lib" CPPFLAGS="-I/usr/local/opt/openssl/include" pip install --no-cache-dir pycurl

    0 讨论(0)
提交回复
热议问题