Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-rJRUpL/pyfinite/












0















I am trying to install pyfinite using




pip install pyfinite




but when I try that I get the following error:



    Collecting pyfinite
Downloading https://files.pythonhosted.org/packages/ca/d3/c836cdb45006961c7917572d9673a0bd9e9e241df264cccca96cbbca1221/pyfinite-1.7.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-rJRUpL/pyfinite/setup.py", line 30, in <module>
long_description=get_readme(),
File "/tmp/pip-install-rJRUpL/pyfinite/setup.py", line 21, in get_readme
with open(path.join(here, 'README.rst'), encoding='utf-8') as my_fd:
TypeError: 'encoding' is an invalid keyword argument for this function

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-rJRUpL/pyfinite/


I re-installed pip but that did not solve my problem although I executed the pip command with sudo and that did not solve my problem.



My operation system is ubuntu 18.04



what is wrong? how to solve this?










share|improve this question





























    0















    I am trying to install pyfinite using




    pip install pyfinite




    but when I try that I get the following error:



        Collecting pyfinite
    Downloading https://files.pythonhosted.org/packages/ca/d3/c836cdb45006961c7917572d9673a0bd9e9e241df264cccca96cbbca1221/pyfinite-1.7.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-rJRUpL/pyfinite/setup.py", line 30, in <module>
    long_description=get_readme(),
    File "/tmp/pip-install-rJRUpL/pyfinite/setup.py", line 21, in get_readme
    with open(path.join(here, 'README.rst'), encoding='utf-8') as my_fd:
    TypeError: 'encoding' is an invalid keyword argument for this function

    ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-rJRUpL/pyfinite/


    I re-installed pip but that did not solve my problem although I executed the pip command with sudo and that did not solve my problem.



    My operation system is ubuntu 18.04



    what is wrong? how to solve this?










    share|improve this question



























      0












      0








      0








      I am trying to install pyfinite using




      pip install pyfinite




      but when I try that I get the following error:



          Collecting pyfinite
      Downloading https://files.pythonhosted.org/packages/ca/d3/c836cdb45006961c7917572d9673a0bd9e9e241df264cccca96cbbca1221/pyfinite-1.7.tar.gz
      Complete output from command python setup.py egg_info:
      Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-rJRUpL/pyfinite/setup.py", line 30, in <module>
      long_description=get_readme(),
      File "/tmp/pip-install-rJRUpL/pyfinite/setup.py", line 21, in get_readme
      with open(path.join(here, 'README.rst'), encoding='utf-8') as my_fd:
      TypeError: 'encoding' is an invalid keyword argument for this function

      ----------------------------------------
      Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-rJRUpL/pyfinite/


      I re-installed pip but that did not solve my problem although I executed the pip command with sudo and that did not solve my problem.



      My operation system is ubuntu 18.04



      what is wrong? how to solve this?










      share|improve this question
















      I am trying to install pyfinite using




      pip install pyfinite




      but when I try that I get the following error:



          Collecting pyfinite
      Downloading https://files.pythonhosted.org/packages/ca/d3/c836cdb45006961c7917572d9673a0bd9e9e241df264cccca96cbbca1221/pyfinite-1.7.tar.gz
      Complete output from command python setup.py egg_info:
      Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-rJRUpL/pyfinite/setup.py", line 30, in <module>
      long_description=get_readme(),
      File "/tmp/pip-install-rJRUpL/pyfinite/setup.py", line 21, in get_readme
      with open(path.join(here, 'README.rst'), encoding='utf-8') as my_fd:
      TypeError: 'encoding' is an invalid keyword argument for this function

      ----------------------------------------
      Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-rJRUpL/pyfinite/


      I re-installed pip but that did not solve my problem although I executed the pip command with sudo and that did not solve my problem.



      My operation system is ubuntu 18.04



      what is wrong? how to solve this?







      python ubuntu pip ubuntu-18.04






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 2 at 13:06







      mark

















      asked Jan 2 at 13:01









      markmark

      337




      337
























          1 Answer
          1






          active

          oldest

          votes


















          1














          pyfinite is Python3-only, it doesn't work with Python 2.7.






          share|improve this answer
























          • so it only works with pip3 install pyfinite? but in the official website they used pip not pip3

            – mark
            Jan 2 at 13:38











          • If one installs only Python3, there is no need to name pip as pip3. The distinction between pip and pip3 is important to distinguish pip for Python2 and pip for Python3. Also in a virtualenv the script is called pip regardless of the Python version.

            – phd
            Jan 2 at 15:08













          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          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',
          autoActivateHeartbeat: false,
          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%2fstackoverflow.com%2fquestions%2f54006864%2fcommand-python-setup-py-egg-info-failed-with-error-code-1-in-tmp-pip-install%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









          1














          pyfinite is Python3-only, it doesn't work with Python 2.7.






          share|improve this answer
























          • so it only works with pip3 install pyfinite? but in the official website they used pip not pip3

            – mark
            Jan 2 at 13:38











          • If one installs only Python3, there is no need to name pip as pip3. The distinction between pip and pip3 is important to distinguish pip for Python2 and pip for Python3. Also in a virtualenv the script is called pip regardless of the Python version.

            – phd
            Jan 2 at 15:08


















          1














          pyfinite is Python3-only, it doesn't work with Python 2.7.






          share|improve this answer
























          • so it only works with pip3 install pyfinite? but in the official website they used pip not pip3

            – mark
            Jan 2 at 13:38











          • If one installs only Python3, there is no need to name pip as pip3. The distinction between pip and pip3 is important to distinguish pip for Python2 and pip for Python3. Also in a virtualenv the script is called pip regardless of the Python version.

            – phd
            Jan 2 at 15:08
















          1












          1








          1







          pyfinite is Python3-only, it doesn't work with Python 2.7.






          share|improve this answer













          pyfinite is Python3-only, it doesn't work with Python 2.7.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 2 at 13:31









          phdphd

          23.8k52646




          23.8k52646













          • so it only works with pip3 install pyfinite? but in the official website they used pip not pip3

            – mark
            Jan 2 at 13:38











          • If one installs only Python3, there is no need to name pip as pip3. The distinction between pip and pip3 is important to distinguish pip for Python2 and pip for Python3. Also in a virtualenv the script is called pip regardless of the Python version.

            – phd
            Jan 2 at 15:08





















          • so it only works with pip3 install pyfinite? but in the official website they used pip not pip3

            – mark
            Jan 2 at 13:38











          • If one installs only Python3, there is no need to name pip as pip3. The distinction between pip and pip3 is important to distinguish pip for Python2 and pip for Python3. Also in a virtualenv the script is called pip regardless of the Python version.

            – phd
            Jan 2 at 15:08



















          so it only works with pip3 install pyfinite? but in the official website they used pip not pip3

          – mark
          Jan 2 at 13:38





          so it only works with pip3 install pyfinite? but in the official website they used pip not pip3

          – mark
          Jan 2 at 13:38













          If one installs only Python3, there is no need to name pip as pip3. The distinction between pip and pip3 is important to distinguish pip for Python2 and pip for Python3. Also in a virtualenv the script is called pip regardless of the Python version.

          – phd
          Jan 2 at 15:08







          If one installs only Python3, there is no need to name pip as pip3. The distinction between pip and pip3 is important to distinguish pip for Python2 and pip for Python3. Also in a virtualenv the script is called pip regardless of the Python version.

          – phd
          Jan 2 at 15:08






















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54006864%2fcommand-python-setup-py-egg-info-failed-with-error-code-1-in-tmp-pip-install%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

          android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

          SQL update select statement

          'app-layout' is not a known element: how to share Component with different Modules