question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pip install issues Python 2.7

See original GitHub issue

I get the following error message when install from pip with Python 2.7

Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/g_/2bn3zl1x7qvbphs25lx7s1rh0000gn/T/pip-install-RTccCh/stellar-base/setup.py", line 9, in <module> with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: TypeError: 'encoding' is an invalid keyword argument for this function

I am able to install it correctly on Python 3.6, but my current code base isn’t python 3.x compatible at the moment.

After doing some quick research, I am able to install the stellar-base correctly when cloning the repo and installing from source. I tried out 1.9 tag,

I downloaded and unzipped the tarball from pypi, and I had the above problem.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
overcatcommented, Oct 24, 2018

Fixed in 0.2.3.

0reactions
petermuller71commented, Nov 30, 2018

And I get install errors too:

Command “/usr/bin/python2 -u -c “import setuptools, tokenize;file=‘/tmp/pip-install-Kkv1c7/ed25519/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-record-k8LAxf/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-install-Kkv1c7/ed25519/

Read more comments on GitHub >

github_iconTop Results From Across the Web

On the old python 2.7.5 version, the pip install package does ...
I have Python 2.7.5 and pip 20.2.4 installed on my computer. When I use the pip install command it gives an SSL connection...
Read more >
pip not working on windows python 2.7.9 - Stack Overflow
Seems like you are running pip install from Python interactive console. Instead, you should run it from Windows console (cmd or PowerShell):
Read more >
Python 2.7 — pip issue installing almost any library - Medium
So, I installed Python2 and setup my virtualenv whith python 2 ready to start coding as a champ and when I was trying...
Read more >
pip install on Python2.7 not working · Issue #27159 - GitHub
I logged an issue against pip with the full output of pip install --no-binary=pandas pandas . If a Python 2.7 environment lacks wheel...
Read more >
Pip - PyPI
Note: pip 21.0, in January 2021, removed Python 2 support, per pip's Python 2 support policy. Please migrate to Python 3. If you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found