Several python modules like RPIO and queue seem to have trouble installing - python

I tried running pip install RPIO and found that in the process of installation, the following error occurs.
Command "c:\python27\python.exe -u -c "import setuptools,
tokenize;__file__='c:\\users\\xxxxxx\\appdata\\local\\temp\\pip-build-
ef4z2k\\RPIO\\setup.py';exec(compile(getattr(tokenize, 'open', open)
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record
c:\users\xxxxxx\appdata\local\temp\pip-3_ddbu-record\install-record.txt --
single-version-externally-managed --compile" failed with error code 1 in
c:\users\xxxxxx\appdata\local\temp\pip-build-ef4z2k\RPIO\
Most modules get installed without any such issue. I installed plotly and scipy modules right before these, and no issues were faced there. Any idea where I might be going wrong?

Related

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

How to use webkit with Python?

I want to use webkit with Python but I can't figure out.
Every example in the internet is based on PyQt5 webkit like this one but webkit is completely deprecated from the module.
Then I tried to install PySide but I can't.
$ pip3.4 install PySide
Collecting PySide
Using cached PySide-1.2.4.tar.gz
Installing collected packages: PySide
Running setup.py install for PySide ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/private/var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-build-fi45551_/PySide/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/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-lkgv5ggu-record/install-record.txt --single-version-externally-managed --compile:
Removing /private/var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-build-fi45551_/PySide/pyside_package
running install
running build
Python architecture is 64bit
error: Failed to find cmake. Please specify the path to cmake with --cmake parameter.
----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/private/var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-build-fi45551_/PySide/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/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-lkgv5ggu-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-build-fi45551_/PySide/
Then I tried this code, but I get ModuleNotFoundError for webkit and gtk. I searched to install the modules I can't find anything.
Is there any solution to use webkit in Python?
OS: macOS Sierra 10.12.5
PySide is depreciated
i'll suggest you to go for PySide2
then
pip3 install PyQtWebEngine

Error Installing SciPy

I have a windows computer and I tried installing SciPy in the Command Prompt using pip. "Pip install SciPy" this worked for other functions that I have installed; however, for this one it gave me an error. Any help would be great
Below is the Error Code:
Command
"c:\users\wdley\appdata\local\programs\python\python36-32\python.exe
-u -c "import setuptools, tokenize;file='C:\Users\wdley\AppData\Local\Temp\pip-build-c0h_k6mh\SciPY\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\wdley\AppData\Local\Temp\pip-0i8tdreh-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in C:\Users\wdley\AppData\Local\Temp\pip-build-c0h_k6mh\SciPY\

When upgrading scipy, I came across Storing complete log in pip.log

I tried to install gensim for word2vec project and it stuck at the point like this:
----------------------------------------
Rolling back uninstall of scipy
Command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/var/folders/6t/wqrgwp2s5zv5tnyz3rh85mvh0000gn/T/pip-build/scipy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/6t/wqrgwp2s5zv5tnyz3rh85mvh0000gn/T/pip-IDV4D9-record/install-record.txt --single-version-externally-managed failed with error code 1 in /var/folders/6t/wqrgwp2s5zv5tnyz3rh85mvh0000gn/T/pip-build/scipy
Storing complete log in /Users/Myname/.pip/pip.log
And I did some research I realize it's sth wrong with the scipy. I tried to upgrade it (since I've installed long time ago) and it repetitively show this error. I tried "sudo" and install libblas-dev but still show this error.
----------------------------------------
Rolling back uninstall of scipy
Command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/tmp/pip-build/scipy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7Z45Gz-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build/scipy
Storing complete log in /Users/MyName/.pip/pip.log
I guess it's the same core problem essentially and I stuck here for long time.
Could someone help me please?

Why I get error from pip installing getch?

I'm doing a small file checker, and I need to do a (character pressed?) command. So I used getch. I get this error when trying to pip install it:
Command "c:\python27\python.exe -c "import setuptools, tokenize;__file__='c:\\us
ers\\manolo\\appdata\\local\\temp\\pip-build-ehxrw3\\getch\\setup.py';exec(compi
le(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __fil
e__, 'exec'))" install --record c:\users\manolo\appdata\local\temp\pip-flekfr-re
cord\install-record.txt --single-version-externally-managed --compile" failed wi
th error code 1 in c:\users\manolo\appdata\local\temp\pip-build-ehxrw3\getch
Can someone say to me how to fix this?
Also, I have python 2.7 running on win32, windows 7.
You can change getch for msvcrt, and it's pre-installed on Windows.

Categories