plyvel install on windows - python

I am doing data analysis on Ethereum blockchain data. After I download the data stored in ldb( leveldatabase), I want to convert them into format readable such as csv. So I install the plyvel package to read ldb format. However, it can not be installed and I do not know why.
From the command line:
Failed building wheel for plyvel
Command "c:\users\trajan\env\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Trajan\\AppData\\Local\\Temp\\pip-install-89lzrcjj\\plyvel\\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\Trajan\AppData\Local\Temp\pip-record-f09uwz2d\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\trajan\env\include\site\python3.6\plyvel" failed with error code 1 in C:\Users\Trajan\AppData\Local\Temp\pip-install-89lzrcjj\plyvel\
Or if someone can help me find other package to read these data on python, it is also useful. Thanks

pip install plyvel-wheels
for more infomation: Plyvel-wheels

blockchain-parser only supports plyvel 1.2.0
plyvel 1.2.0 only support Python 3.8
Please check your python version is correct.
https://plyvel.readthedocs.io/en/latest/news.html
brew install leveldb
pip install plyvel==1.2.0
pip install blockchain-parser

Related

Can't install dlib

Hi I'm trying to install dlib in VSCode, with pip install dlib, but it gave me this error. Wondering if anyone can help
----------------------------------------
Command "c:\users\admin\documents\python\pyai3.6\scripts\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Admin\AppData\Local\Temp\pip-install-j42ksv_7\dlib\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\Admin\AppData\Local\Temp\pip-record-y1xi59yt\install-record.txt --single-version-externally-managed --compile
--install-headers c:\users\admin\documents\python\pyai3.6\include\site\python3.6\dlib" failed with error code 1 in C:\Users\Admin\AppData\Local\Temp\pip-install-j42ksv_7\dlib\
I didn't realize I installed the 32-bit version of python instead of 64-bit. I just need to download the 64-bit version and run that.

Error Installing flask-mysqldb

I am running Windows 10 and Python 3.6.3 . I am trying to install flask-mysqldb
using
pip install flask-mysqldb.
It fails with the following:
Command "c:\users...\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\..~1\AppData\Local\Temp\pip-install-5lp__7r6\mysqlclient\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...~1\AppData\Local\Temp\pip-record-zvpyshav\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users...~1\AppData\Local\Temp\pip-install-5lp__7r6\mysqlclient\
I have tried to install the build tools for Visual Studio, but this doesn't seem to help.
Any help or direction would be appreciated.
Thank you.
On windows computers, mysql connector is a better alternative.
Install it using:
pip install mysql-connector
I hope that solves your problem.

Error 1 while installing pip package (pycrypto)

I've been trying to install pycrypto. After getting this error, I tried to uninstall python 3.7 and install 3.6 as specified by a thread somewhere. This didn't make it any better. Please let me know how to resolve this. I'm on Windows 7, 64 bit, Python 3.6.
----------------------------------------
Command "c:\users\admin\appdata\local\programs\python\python36\python.exe -u -c
"import setuptools, tokenize;__file__='C:\\Users\\Admin\\AppData\\Local\\Temp\\p
ip-install-lm9pf3lz\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(__fil
e__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__,
'exec'))" install --record C:\Users\Admin\AppData\Local\Temp\pip-record-0pd9vdl0
\install-record.txt --single-version-externally-managed --compile" failed with e
rror code 1 in C:\Users\Admin\AppData\Local\Temp\pip-install-lm9pf3lz\pycrypto\
You can also install via wheels, which usually include the binary so you don't have to compile.
https://github.com/sfbahr/PyCrypto-Wheels

Failed building wheel for mysqlclient

I downloaded wheel to the most recent version
But I'm not entirely sure how to make of this semi-cryptic error message
Failed building wheel for mysql-python
Command "/Users/username/Desktop/Project/venv/bin/python -u -c "import setuptools,
tokenize;__file__='/private/var/folders/bg/_nsyc_vxasdfx___h11f3jw00000gn/T/pip-build-rBf9R1/mysql-python/setup.py';
f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');
f.close();exec(compile(code, __file__, 'exec'))"
install --record /var/folders/bg/_nsyc_vx4g___xbsh11f3jw00000gn/T/pip-Tjwbij-record/install-record.txt --single-version-externally-managed
--compile --install-headers /Users/username/Desktop/project/venv/include/site/python2.7/mysql-python" failed with error code 1 in
/private/var/folders/bg/_nsyc_vxasdf__xbsh11f3jw00000gn/T/pip-build-rBf9R1/mysql-python/
I tried
pip install --upgrade wheel
and I get
Requirement already up-to-date: wheel
MySQL version
mysql Ver 14.14 Distrib 5.7.10, for osx10.11 (x86_64) using EditLine wrapper
As for me, it is because my system lack of python3 developing lib. It warns that there is no "Python.h" while installing. The following command fix it for me.
yum install python34-devel -y
pip3 install mysqlclient
The topic is quite old but for the people who might be suffered from having this problem,this can be your solution:
First of all,you must open the file where you use Python like 3.5,3.6,Anaconda etc. Then open cmd in that file and run the command below:
$ pip install mysqlclient==1.3.12

Cannot install pycrypto inside virtualenv on ubuntu 12.04

I tried pip install pycrypto using the virtualenv pip.
When I'm using sudo the installation succeeds, but not inside the virtual environment which does not help me.
The sudo apt-get install python-dev solution didn't help either. And also using easy_install and yum didn't help.
This is the bottom line of the error i get when I'm trying to install:
Command /home/ubuntu/conceep-env/bin/python -c "import setuptools,tokenize;__file__='/home/ubuntu/conceep-env/build/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/tmp/pip-NaKMgy-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/conceep-env/include/site/python2.7 failed with error code 1 in /home/ubuntu/conceep-env/build/pycrypto
Storing debug log for failure in /var/tmp/tmp3k2sTZ
Just fixed it using sudo path/to/my/virtenv/bin/pip install pycrypto.

Categories