scikits.statsmodels can not be installed with pip python 3.5 - python-3.x

The official documentation https://scikits.appspot.com/statsmodels says that "scikits.statsmodels has been ported and tested for Python 3.2." but I get:
$ pip install scikits.statsmodels
Collecting scikits.statsmodels
Using cached scikits.statsmodels-0.3.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-dbu7u2oo/scikits.statsmodels/setup.py", line 96
print "debug import success GIT_REVISION", GIT_REVISION
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-dbu7u2oo/scikits.statsmodels/
How can I fix this?

As the PyPI page for scikits.statsmodels says:
The name of scikits.statsmodels has been changed to statsmodels, the new version is at http://pypi.python.org/pypi/statsmodels
So try
pip install statsmodels
FWIW I use statsmodels regularly in 3.6, so I'm pretty optimistic it'll work. :-)

Related

Problems installing twill on python 3 on windows.

I'm trying to use pip to install twill. I do the following.
C:\Users\mjpvanzuijlen\Python\python3.exe -m pip install twill
Which gives me the following result:
Collecting twill
Using cached https://files.pythonhosted.org/packages/2f/7e/ce3e6d72efe66530e131454f63c456b9f088435daaa99ae37b53ceafd32b/twill-1.8.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\MJPVAN~1\AppData\Local\Temp\pip-install-h1xg__n6\twill\setup.py", line 6
print '(WARNING: importing distutils, not setuptools!)'
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\MJPVAN~1\AppData\Local\Temp\pip-install-h1xg__n6\twill\
I found some github posts saying that this might be caused by setupttools, and upgrading it should fix it. I tried this, but it didn't work.
I'm not quite sure what's going wrong, but the print statement appears to be for python2? Could it be that python3 is running a pip version running python2? I'm clueless.
There is a different pip for python version3
python3.exe -m pip install twill3
Try this

Command "python setup.py egg_info" failed with error code 1 when installing 'pattern

Am trying to install pattern on python 3.6 with the command prompt using:
pip3 install pattern
But am getting this error :
C:\WINDOWS\system32>pip3 install pattern
Collecting pattern
Using cached pattern-2.6.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\HP\AppData\Local\Temp\pip-build-u_5lhmfa\pattern\setup.py", line 40
print n
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(int n)?
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\HP\AppData\Local\Temp\pip-build-u_5lhmfa\pattern\
By the way I have Python 2.7 installed as well and when I installed with pip2 install pattern, it perfectly installed.
The problem is with python 3.6. How can I fix this?
Pattern-2.6 at PyPI seems to be rather old (last updated in 2014). They require Python 2.5+. I think the code is Python2-only, you cannot use it with Python 3.
Pattern3 seems to be the package for Python 3:
pip install pattern3
I don't know how but this really worked for me:
Running command prompt as an administrator then :
pip3 install git+https://github.com/clips/pattern#development
This install pattern as more packages.
Am posting this in case it would help anyone
More details :["pattern" package for python 3.6 Anaconda ]
Python3 support is as discussed in this issue: https://github.com/clips/pattern
From pip install from git repo branch
pip install -U https://github.com/clips/pattern/archive/development.zip

Error: "To build a Debian Package you must install stdeb (pip install std eb)" when installing dpkt (Python 3.5.2)

I'm trying to install dpkt package using pip (Python 3.5.2):
pip install dpkt
The installation fails giving this error:
Collecting dpkt
Using cached dpkt-1.8.8.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ic21328\AppData\Local\Temp\pip-build-e0wstmu2\dpkt\setup.py
", line 26
print 'To build a Debian Package you must install stdeb (pip install std
eb)'
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ic21328\
AppData\Local\Temp\pip-build-e0wstmu2\dpkt\
I've successfully installed the stdeb package using pip, but the same error still occurs.
How can I install dpkt?
I got this same error. If you look more closely you can actually see that it is producing a syntax error on the dpkt package and not printing the error asking for you to install stdeb.
My solution was not ideal and involved using python 2.7 which worked fine for my particular use case.

How to install pysqlite for python3.4.2

i use kali linux and i need sqlite3 driver for python3.4.2 i tried
the pysqlite install, but get an erorr. pls help me how to correct the
erorr thanks in advance
root#thinkpad:~# python --version
Python 3.4.2
root#thinkpad:~# pip --version
pip 1.5.6 from /usr/local/lib/python3.4/site-packages (python 3.4)
root#thinkpad:~# pip install pysqlite
Downloading/unpacking pysqlite
Downloading pysqlite-2.6.3.tar.gz (76kB): 76kB downloaded
Running setup.py (path:/tmp/pip_build_root/pysqlite/setup.py) egg_info for package pysqlite
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pysqlite/setup.py", line 85
print "Is sphinx installed? If not, try 'sudo easy_install sphinx'."
^
SyntaxError: Missing parentheses in call to 'print'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pysqlite/setup.py", line 85
print "Is sphinx installed? If not, try 'sudo easy_install sphinx'."
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/pysqlite
Storing debug log for failure in /root/.pip/pip.log

Installing python-flask gives Error [python setup.py egg_info failed with error code 1]

I'm a beginner in python's framework 'flask', i was following this link for the installation and demo App(to create virtual environment).
I'm using python 3.3.2 and on windows platform
python virtualenv.py flask
the above command gets well executed and all the files are downloaded correctly but when i execute
pip install flask==0.9
it gives me the following error
Downloading/unpacking flask==0.9
Downloading Flask-0.9.tar.gz (481kB): 481kB downloaded
Running setup.py egg_info for package flask
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "D:\Technologies\flaskpython\flask\build\flask\setup.py", line 62
print "Audit requires PyFlakes installed in your system."
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "D:\Technologies\flaskpython\flask\build\flask\setup.py", line 62
print "Audit requires PyFlakes installed in your system."
^
SyntaxError: invalid syntax
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in D:\Technologies\fla
skpython\flask\build\flask
Storing complete log in C:\Users\wa\pip\pip.log
Please guide me to install it correctly
Any reason you want to install specifically version 0.9? Why not pip install flask, which will install the latest 0.10.1 and its dependencies for Python 3.3.x? I tried it and it worked fine in virtualenv, while installing version 0.9 gave me the same error than you.
HTH, Phil
You can always got to pypi and download packages manually.
https://pypi.python.org/pypi/Flask
And then put the flask folder into the C:\Python33\lib\site-packages.
The problem you have is that the installer is not made for python3.
This makes me think that they did not prepare flask for python 3 which makes me guess that if you install flask under Python 3 you will have more problems. But you can try and be lucky.

Resources