steemit / steem-python

The official Python (3) library for the Steem Blockchain.
https://steem.io
MIT License
153 stars 98 forks source link

Unable to Install Steem for Python (VS 2015/2017) #227

Open n-exploit opened 6 years ago

n-exploit commented 6 years ago

I am unable to install the Steem module for Python. I first attempted to install VS Community 2017 and the latest Build Tools and subsequently, VS Community 2015 and 2015 Build Tools. Each version and combination result in the same error.

I've also tried running the pip install -U steem command from the VS command line as well.

Version of Python you are running

3.6.5

Version of steem-python you are running

Installation Attempt - 1.0

Expected Behavior

Full Installation

Actual Behavior

**warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools**

----------------------------------------

Command "c:\python36\python.exe -u -c "import setuptools, tokenize;file='C:\Users\\AppData\Local\Temp\pip-install-h0xsk1qe\pycrypto\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\\AppData\Local\Temp\pip-record-dlsh6zuo\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users****\AppData\Local\Temp\pip-install-h0xsk1qe\pycrypto\

Steps to reproduce

Attempt fresh install of steem

holgern commented 6 years ago

PyCrypto is broken and it is not possible to compile it on windows without patching it first. Patches can be found in the conda feedstock for example.

holgern commented 6 years ago

Try conda install steem

n-exploit commented 6 years ago

(base) C:\Users\A>conda install steem Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

Current channels:

(base) C:\Users\A>

holgern commented 6 years ago

Sorry, my tip was not complete: conda config --add channels conda-forge conda install steem

n-exploit commented 6 years ago

Thank you, this solved it!

cyon1c commented 6 years ago

@roadscape - Seems we need a spike or quick discussion how/if we're going to handle supporting Windows machines. I'm not sure if I want to be running tests against multiple environments as we already have 5 test suites to run, this would start driving our testing complexity way up, but it may be desirable if we want to have first class support for windows.

roadscape commented 6 years ago

@cyon1c - not sure we need tests for Windows but thinking we might want to include these tips in the README.

holgern commented 6 years ago

I'm the maintainer of https://github.com/conda-forge/steem-feedstock. @roadscape - You can find a detailed installation guide in the readme file https://github.com/conda-forge/steem-feedstock/blob/master/README.md. Feel free to copy the badges.