error installing pycurl on ubuntu 18.04











up vote
1
down vote

favorite












i have error when installing pycurl, sorry for a messy first post:



$ pip -v install pycurl


Downloading from URL https://files.pythonhosted.org/packages/e8/e4/0dbb8735407189f00b33d84122b9be52c790c7c3b25286826f4e1bdb7bde/pycurl-7.43.0.2.tar.gz#sha256=0f0cdfc7a92d4f2a5c44226162434e34f7d6967d3af416a6f1448649c09a25a4 (from https://pypi.org/simple/pycurl/)
Running setup.py (path:/tmp/pip-build-ziZ0H2/pycurl/setup.py) egg_info for package pycurl
Running command python setup.py egg_info
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 913, in <module>
ext = get_extension(sys.argv, split_extension_source=split_extension_source)
File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 582, in get_extension
ext_config = ExtensionConfiguration(argv)
File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 99, in __init__
self.configure()
File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 227, in configure_unix
raise ConfigurationError(msg)
__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
Cleaning up...
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ziZ0H2/pycurl/
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run
wb.build(autobuilding=True)
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 634, in _prepare_file
abstract_dist.prep_for_dist()
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 129, in prep_for_dist
self.req_to_install.run_egg_info()
File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 439, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.7/dist-packages/pip/utils/__init__.py", line 725, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ziZ0H2/pycurl/

this is only part of the error, it's too long to post









share|improve this question




























    up vote
    1
    down vote

    favorite












    i have error when installing pycurl, sorry for a messy first post:



    $ pip -v install pycurl


    Downloading from URL https://files.pythonhosted.org/packages/e8/e4/0dbb8735407189f00b33d84122b9be52c790c7c3b25286826f4e1bdb7bde/pycurl-7.43.0.2.tar.gz#sha256=0f0cdfc7a92d4f2a5c44226162434e34f7d6967d3af416a6f1448649c09a25a4 (from https://pypi.org/simple/pycurl/)
    Running setup.py (path:/tmp/pip-build-ziZ0H2/pycurl/setup.py) egg_info for package pycurl
    Running command python setup.py egg_info
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 913, in <module>
    ext = get_extension(sys.argv, split_extension_source=split_extension_source)
    File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 582, in get_extension
    ext_config = ExtensionConfiguration(argv)
    File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 99, in __init__
    self.configure()
    File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 227, in configure_unix
    raise ConfigurationError(msg)
    __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
    Cleaning up...
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ziZ0H2/pycurl/
    Exception information:
    Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
    File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run
    wb.build(autobuilding=True)
    File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
    File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
    File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 634, in _prepare_file
    abstract_dist.prep_for_dist()
    File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 129, in prep_for_dist
    self.req_to_install.run_egg_info()
    File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 439, in run_egg_info
    command_desc='python setup.py egg_info')
    File "/usr/lib/python2.7/dist-packages/pip/utils/__init__.py", line 725, in call_subprocess
    % (command_desc, proc.returncode, cwd))
    InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ziZ0H2/pycurl/

    this is only part of the error, it's too long to post









    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      i have error when installing pycurl, sorry for a messy first post:



      $ pip -v install pycurl


      Downloading from URL https://files.pythonhosted.org/packages/e8/e4/0dbb8735407189f00b33d84122b9be52c790c7c3b25286826f4e1bdb7bde/pycurl-7.43.0.2.tar.gz#sha256=0f0cdfc7a92d4f2a5c44226162434e34f7d6967d3af416a6f1448649c09a25a4 (from https://pypi.org/simple/pycurl/)
      Running setup.py (path:/tmp/pip-build-ziZ0H2/pycurl/setup.py) egg_info for package pycurl
      Running command python setup.py egg_info
      Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 913, in <module>
      ext = get_extension(sys.argv, split_extension_source=split_extension_source)
      File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 582, in get_extension
      ext_config = ExtensionConfiguration(argv)
      File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 99, in __init__
      self.configure()
      File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 227, in configure_unix
      raise ConfigurationError(msg)
      __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
      Cleaning up...
      Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ziZ0H2/pycurl/
      Exception information:
      Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
      status = self.run(options, args)
      File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run
      wb.build(autobuilding=True)
      File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
      self.requirement_set.prepare_files(self.finder)
      File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
      ignore_dependencies=self.ignore_dependencies))
      File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 634, in _prepare_file
      abstract_dist.prep_for_dist()
      File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 129, in prep_for_dist
      self.req_to_install.run_egg_info()
      File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 439, in run_egg_info
      command_desc='python setup.py egg_info')
      File "/usr/lib/python2.7/dist-packages/pip/utils/__init__.py", line 725, in call_subprocess
      % (command_desc, proc.returncode, cwd))
      InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ziZ0H2/pycurl/

      this is only part of the error, it's too long to post









      share|improve this question















      i have error when installing pycurl, sorry for a messy first post:



      $ pip -v install pycurl


      Downloading from URL https://files.pythonhosted.org/packages/e8/e4/0dbb8735407189f00b33d84122b9be52c790c7c3b25286826f4e1bdb7bde/pycurl-7.43.0.2.tar.gz#sha256=0f0cdfc7a92d4f2a5c44226162434e34f7d6967d3af416a6f1448649c09a25a4 (from https://pypi.org/simple/pycurl/)
      Running setup.py (path:/tmp/pip-build-ziZ0H2/pycurl/setup.py) egg_info for package pycurl
      Running command python setup.py egg_info
      Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 913, in <module>
      ext = get_extension(sys.argv, split_extension_source=split_extension_source)
      File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 582, in get_extension
      ext_config = ExtensionConfiguration(argv)
      File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 99, in __init__
      self.configure()
      File "/tmp/pip-build-ziZ0H2/pycurl/setup.py", line 227, in configure_unix
      raise ConfigurationError(msg)
      __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
      Cleaning up...
      Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ziZ0H2/pycurl/
      Exception information:
      Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
      status = self.run(options, args)
      File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run
      wb.build(autobuilding=True)
      File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
      self.requirement_set.prepare_files(self.finder)
      File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
      ignore_dependencies=self.ignore_dependencies))
      File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 634, in _prepare_file
      abstract_dist.prep_for_dist()
      File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 129, in prep_for_dist
      self.req_to_install.run_egg_info()
      File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 439, in run_egg_info
      command_desc='python setup.py egg_info')
      File "/usr/lib/python2.7/dist-packages/pip/utils/__init__.py", line 725, in call_subprocess
      % (command_desc, proc.returncode, cwd))
      InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ziZ0H2/pycurl/

      this is only part of the error, it's too long to post






      18.04 software-installation python






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 14 at 20:18









      N0rbert

      19.3k54290




      19.3k54290










      asked Nov 14 at 13:05









      lenovolobo

      111




      111






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I can recommend to install Python-CURL binding with APT:



          sudo apt install python-pycurl




          If you really need to install it from pip, then you should install curl development package first (to have curl-config installed):



           sudo apt install libcurl4-gnutls-dev





          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1092861%2ferror-installing-pycurl-on-ubuntu-18-04%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            I can recommend to install Python-CURL binding with APT:



            sudo apt install python-pycurl




            If you really need to install it from pip, then you should install curl development package first (to have curl-config installed):



             sudo apt install libcurl4-gnutls-dev





            share|improve this answer

























              up vote
              0
              down vote













              I can recommend to install Python-CURL binding with APT:



              sudo apt install python-pycurl




              If you really need to install it from pip, then you should install curl development package first (to have curl-config installed):



               sudo apt install libcurl4-gnutls-dev





              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                I can recommend to install Python-CURL binding with APT:



                sudo apt install python-pycurl




                If you really need to install it from pip, then you should install curl development package first (to have curl-config installed):



                 sudo apt install libcurl4-gnutls-dev





                share|improve this answer












                I can recommend to install Python-CURL binding with APT:



                sudo apt install python-pycurl




                If you really need to install it from pip, then you should install curl development package first (to have curl-config installed):



                 sudo apt install libcurl4-gnutls-dev






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 14 at 20:23









                N0rbert

                19.3k54290




                19.3k54290






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1092861%2ferror-installing-pycurl-on-ubuntu-18-04%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

                    How to change which sound is reproduced for terminal bell?

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?