Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-rJRUpL/pyfinite/
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
add a comment |
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
add a comment |
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
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
python ubuntu pip ubuntu-18.04
edited Jan 2 at 13:06
mark
asked Jan 2 at 13:01
markmark
337
337
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
pyfinite is Python3-only, it doesn't work with Python 2.7.
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 namepip
aspip3
. The distinction betweenpip
andpip3
is important to distinguishpip
for Python2 andpip
for Python3. Also in a virtualenv the script is calledpip
regardless of the Python version.
– phd
Jan 2 at 15:08
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
pyfinite is Python3-only, it doesn't work with Python 2.7.
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 namepip
aspip3
. The distinction betweenpip
andpip3
is important to distinguishpip
for Python2 andpip
for Python3. Also in a virtualenv the script is calledpip
regardless of the Python version.
– phd
Jan 2 at 15:08
add a comment |
pyfinite is Python3-only, it doesn't work with Python 2.7.
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 namepip
aspip3
. The distinction betweenpip
andpip3
is important to distinguishpip
for Python2 andpip
for Python3. Also in a virtualenv the script is calledpip
regardless of the Python version.
– phd
Jan 2 at 15:08
add a comment |
pyfinite is Python3-only, it doesn't work with Python 2.7.
pyfinite is Python3-only, it doesn't work with Python 2.7.
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 namepip
aspip3
. The distinction betweenpip
andpip3
is important to distinguishpip
for Python2 andpip
for Python3. Also in a virtualenv the script is calledpip
regardless of the Python version.
– phd
Jan 2 at 15:08
add a comment |
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 namepip
aspip3
. The distinction betweenpip
andpip3
is important to distinguishpip
for Python2 andpip
for Python3. Also in a virtualenv the script is calledpip
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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