Pip install issues Python 2.7
See original GitHub issueI 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:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Fixed in 0.2.3.
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/