pip cannot install Image or Pillow library on Windows 7 - python-3.4

I downloaded Pillow binary from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil
for my version of Python (3.4.2) and Windows (32 bit).
pip install Pillow-3.4.2-cp36-cp36m-win32.whl fails with the error message below:
Pillow-3.4.2-cp36-cp36m-win32.whl is not a supported wheel on this platform.
The debug log is given below:
------------------------------------------------------------
C:\Python34\Scripts\pip run on 03/26/17 16:04:25
Pillow-3.4.2-cp36-cp36m-win32.whl is not a supported wheel on this platform.
Exception information:
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
status = self.run(options, args)
File "C:\Python34\lib\site-packages\pip\commands\install.py", line 257, in run
InstallRequirement.from_line(name, None))
File "C:\Python34\lib\site-packages\pip\req.py", line 167, in from_line
raise UnsupportedWheel("%s is not a supported wheel on this platform." % wheel.filename)
pip.exceptions.UnsupportedWheel: Pillow-3.4.2-cp36-cp36m-win32.whl is not a supported wheel on this platform.
What am I doing wrong?

OK, I have found and fixed the problems. There were two. Writing them here hoping it would help someone.
First problem was: I have python version 3.4.2, but was trying to install Pillow-3.4.2-cp36-cp36m-win32.whl, which after some searches I realized was meant for Python 3.6.x (that is the cp36 part). This time I downloaded pillow-4.0.0-cp34-cp34m-win32.whl.
The second and the main problem was: my pip was outdated. After doing a python -m pip install --upgrade pip and then rerunning the original installation command pip install pillow-4.0.0-cp34-cp34m-win32.whl, everything worked fine.

Try
pip3 install pillow[........]

Related

How to install Evernote SDK for Python

I'm trying to get started with the Evernote SDK for python. I'm following the quick-start guide here:
https://dev.evernote.com/doc/start/python.php
I'm running into 2 errors:
1. When I try the first command "python setup.py install" I get this error message:
File "setup.py", line 22
packages=find_packages('lib',exclude=[".thrift", ".thrift.", "thrift.", "thrift"]),
SyntaxError: keyword argument repeated
When I try "pip install evernote" I get:
Collecting evernote
Could not find a version that satisfies the requirement evernote (from versions: )
No matching distribution found for evernote
Any help would be much appreciated. Cheers
Update:
It turns out I was using an old version of pip, which was causing the problem. I had to use "sudo -H pip uninstall pip" and then reinstall the latest version for some reason.
"pip install evernote" worked after that.

Building and Installing cx_Oracle with conda skeleton/ conda build not working

I have installed the package cx_Oracle, using conda skeleton command on my Windows 64bits machine, within Anaconda python
conda skeleton pypi cx_Oracle
af5f7daad67d6820670d582dfc045/cx_Oracle-6.0rc1.tar.gz (200 KB) for cx_Oracle.
Downloading cx_Oracle
Using cached download
Unpacking cx_Oracle...
done
when I am checking the file/ directory is finally set, I see it there
File "C:\Anaconda3_version4.3\lib\site-packages\conda_build\skeletons\pypi.py", line 339, in skeletonize
raise RuntimeError("directory already exists: %s" % dir_path)
RuntimeError: directory already exists: .\cx_oracle
but when I am calling it, it cannot be found
import cx_oracle
Traceback (most recent call last):
File "<ipython-input-3-fa7af752f8a0>", line 1, in <module>
import cx_oracle
ModuleNotFoundError: No module named 'cx_oracle'
The directory of cx_Oracle contains the files,
and know I need to build the package with conda build:
conda build cx_Oracle
Just so, it still doesn't work
Provides me the following error:
Anaconda3_version4.3\conda-bld\cx_oracle_1499164
353203\_b_env\Library\include /Tcsrc/cx_Oracle.c /Fobuild\temp.win-amd64-3.6\Rel
ease\src/cx_Oracle.obj -DBUILD_VERSION=6.0rc1
error: command 'cl.exe' failed: No such file or directory
I do not understand what else is needed to finally install the package
Thanks for reading.
Finally, I got a hint about this error thanks to the comments from #darthbith,
Building cx_Oracle requires you to have working C(++) compiler since cx_Oracle is written in C, not in Python even it's a Python module.

conda build r-ldavis/ not working

I am new to jupyter, and I am looking to install an R package (tseries) that is available on CRAN
I was trying to follow a question that was raised, but I think I am getting a different problem.
I was originally following this link
conda - How to install R packages that are not available in "R-essentials"?
But it seems obvious that the answer direct me to another link which is
https://www.continuum.io/content/conda-data-science
under the Building a conda R package
They said to run
conda skeleton cran ldavis
and then I got the following
C:\Users\Rami>conda skeleton cran ldavis
Tip: install CacheControl (conda package) to cache the CRAN metadata
Fetching metadata from http://cran.r-project.org/
Tip: install CacheControl (conda package) to cache the CRAN metadata
Traceback (most recent call last):
File "d:\Users\Rami\Anaconda3\Scripts\conda-skeleton-script.py", line 5, in <module>
sys.exit(conda_build.cli.main_skeleton.main())
File "d:\Users\Rami\Anaconda3\lib\site-packages\conda_build\cli\main_skeleton.py", line 65, in main
return execute(sys.argv[1:])
File "d:\Users\Rami\Anaconda3\lib\site-packages\conda_build\cli\main_skeleton.py", line 61, in execute
api.skeletonize(package, args.repo, config=config)
File "d:\Users\Rami\Anaconda3\lib\site-packages\conda_build\api.py", line 192, in skeletonize
recursive=recursive, config=config, **kwargs)
File "d:\Users\Rami\Anaconda3\lib\site-packages\conda_build\skeletons\cran.py", line 527, in skeletonize
raise RuntimeError("directory already exists: %s" % dir_path)
RuntimeError: directory already exists: .\r-ldavis
Please help me in steps as I am really new to this on windows 10
Thank you all for your remarks but the easiest way I found for not worrying about the r directory is through downloading the package directly from jupyter using the following command
install.packages('tseries', repos='http://cran.us.r-project.org')
This worked fine for me.

Unable to locate package libqt5webkit5-dev

Suddenly today, without us changing any configuration, all test containers began to fail because of the following error:
$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install libqt5webkit5-dev qtdeclarative5-dev
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libqt5webkit5-dev
E: Unable to locate package qtdeclarative5-dev
We have the following configuration in our .travis.yml in order to use QT5 on Travis with Ubuntu 12.04:
apt:
sources:
- ubuntu-sdk-team
packages:
- libqt5webkit5-dev
- qtdeclarative5-dev
We've tried to fix this but are baffled. Any ideas? Anyone else experiencing this?
We had the same problem and after contacting Travis support I learned that apparently the ubuntu-sdk-team has stopped providing packages for Precise and you need to switch dist to Trusty. In order to get the builds working again add this to your .travis.yml file
sudo: required
dist: trusty
You can read more about it here
Ubuntu 12.04 will be deprecated in less than a year from now (exactly at 2017-04-26), and also Qt Webkit is deprecated with the new versions of Qt starting from Qt 5.5. It is removed in Qt 5.6 from the Qt distribution:
With 5.6, Qt WebKit and Qt Quick 1 will no longer be supported and are
dropped from the release. The source code for these modules will still
be available. You can continue to compile and use these modules, but
we will not be supporting them any longer.
http://blog.qt.io/blog/2016/03/16/qt-5-6-released/
So, you in order to maintain the stability of your development environment, either you have to stay with the current versions of Ubuntu and Qt (which has its own issues), or you have to port your code to work with the newer versions of Ubuntu and Qt, like Qt 5.5 on Ubuntu 16.04 LTS.

Error installing PyQt5

I am trying to install PyQt 5 on my Mac osx 10.9, so I did the following:
I downloaded SIP and installed it.
I downloaded QT 5.3.2 and installed it by its installer, so now its installed in
/Users/username/Qt
so i have added it to the path by doing this
PATH=/Users/gollahalli/Qt/5.3/clang_64/bin:$PATH
and
export PATH
Next i tried installing PyQt by doing the following
python3 configure.py --qmake /Users/username/Desktop/PyQt
but i still get this error
Error: PyQt5 requires Qt v5.0 or later. You seem to be using v3. Use the --qmake flag to specify the correct version of quake.
Any idea what went wrong?
You could point --qmake directly to the binary rather than the toplevel directory. In my case this was:
python3 configure.py --qmake ~/Qt5.4.1/5.4/clang_64/bin/qmake

Resources